eric5config.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2965
d133c7edd88a
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
2 # 2 #
3 # This module contains the configuration of the individual eric installation 3 # This module contains the configuration of the individual eric installation
4 # 4 #
5 5
6 """ 6 """
7 Module containing the default configuration of the eric5 installation 7 Module containing the default configuration of the eric5 installation.
8 """ 8 """
9 9
10 from __future__ import unicode_literals # __IGNORE_WARNING__ 10 from __future__ import unicode_literals # __IGNORE_WARNING__
11 11
12 import sys 12 import sys
31 'mdir': __ericDir, 31 'mdir': __ericDir,
32 } 32 }
33 33
34 34
35 def getConfig(name): 35 def getConfig(name):
36 ''' 36 """
37 Module function to get a configuration value. 37 Module function to get a configuration value.
38 38
39 @param name the name of the configuration value (string). 39 @param name the name of the configuration value (string).
40 ''' 40 @return requested config value
41 @exception AttributeError raised to indicate an invalid config entry
42 """
41 try: 43 try:
42 return _pkg_config[name] 44 return _pkg_config[name]
43 except KeyError: 45 except KeyError:
44 pass 46 pass
45 47
46 raise AttributeError('"{0}" is not a valid configuration value'.format(name)) 48 raise AttributeError(
49 '"{0}" is not a valid configuration value'.format(name))

eric ide

mercurial