# -*- coding: utf-8 -*-
#
# This module contains the configuration of the individual eric4 installation
#

_pkg_config = {
    'ericDir'              : r'/usr/pkg/lib/python2.7/site-packages/eric4',
    'ericPixDir'           : r'/usr/pkg/lib/python2.7/site-packages/eric4/pixmaps',
    'ericIconDir'          : r'/usr/pkg/lib/python2.7/site-packages/eric4/icons',
    'ericDTDDir'           : r'/usr/pkg/lib/python2.7/site-packages/eric4/DTDs',
    'ericCSSDir'           : r'/usr/pkg/lib/python2.7/site-packages/eric4/CSSs',
    'ericStylesDir'        : r'/usr/pkg/lib/python2.7/site-packages/eric4/Styles',
    'ericDocDir'           : r'/usr/pkg/lib/python2.7/site-packages/eric4/Documentation',
    'ericExamplesDir'      : r'/usr/pkg/lib/python2.7/site-packages/eric4/Examples',
    'ericTranslationsDir'  : r'/usr/pkg/lib/python2.7/site-packages/eric4/i18n',
    'ericTemplatesDir'     : r'/usr/pkg/lib/python2.7/site-packages/eric4/DesignerTemplates',
    'ericCodeTemplatesDir' : r'/usr/pkg/lib/python2.7/site-packages/eric4/CodeTemplates',
    'ericOthersDir'        : r'/usr/pkg/lib/python2.7/site-packages/eric4',
    'bindir'               : r'/usr/pkg/bin',
    'mdir'                 : r'/usr/pkg/lib/python2.7/site-packages',
    'apidir'               : r'/usr/pkg/qt4/qsci/api',
    'apis'                 : ['eric4.api', 'zope-2.11.2.api', 'zope-2.10.7.api', 'zope-3.3.1.api', 'eric4.api', 'Ruby-1.8.7.api'],
    'macAppBundlePath'     : r'/Applications',
    'macAppBundleName'     : r'eric4.app',
}

def getConfig(name):
    '''
    Module function to get a configuration value.

    @param name the name of the configuration value (string).
    '''
    try:
        return _pkg_config[name]
    except KeyError:
        pass

    raise AttributeError, '"%s" is not a valid configuration value' % name
