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

_pkg_config = {
    'ericDir'             : r'/usr/local/lib/python2.5/site-packages/eric3',
    'ericPixDir'          : r'/usr/local/lib/python2.5/site-packages/eric3/pixmaps',
    'ericIconDir'         : r'/usr/local/lib/python2.5/site-packages/eric3/icons',
    'ericDTDDir'          : r'/usr/local/lib/python2.5/site-packages/eric3/DTDs',
    'ericCSSDir'          : r'/usr/local/lib/python2.5/site-packages/eric3/CSSs',
    'ericDocDir'          : r'/usr/local/lib/python2.5/site-packages/eric3/Documentation',
    'ericExamplesDir'     : r'/usr/local/lib/python2.5/site-packages/eric3/Examples',
    'ericTranslationsDir' : r'/usr/local/lib/python2.5/site-packages/eric3/i18n',
    'ericWizardsDir'      : r'/usr/local/lib/python2.5/site-packages/eric3/Wizards',
    'ericTemplatesDir'    : r'/usr/local/lib/python2.5/site-packages/eric3/DesignerTemplates',
    'ericOthersDir'       : r'/usr/local/lib/python2.5/site-packages/eric3',
    'bindir'              : r'/usr/local/bin/',
    'mdir'                : r'/usr/local/lib/python2.5/site-packages',
    
    'qtui'                : True,
    'qttable'             : True,
    'qtcanvas'            : True,
}

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
