eric5config.py

changeset 2965
d133c7edd88a
parent 945
8cd4d08fa9f6
child 3057
10516539f238
equal deleted inserted replaced
2964:84b65fb9e780 2965:d133c7edd88a
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 import sys 10 import sys
11 import os 11 import os
12 12
29 'mdir': __ericDir, 29 'mdir': __ericDir,
30 } 30 }
31 31
32 32
33 def getConfig(name): 33 def getConfig(name):
34 ''' 34 """
35 Module function to get a configuration value. 35 Module function to get a configuration value.
36 36
37 @param name the name of the configuration value (string). 37 @param name the name of the configuration value (string).
38 ''' 38 @return requested config value
39 @exception AttributeError raised to indicate an invalid config entry
40 """
39 try: 41 try:
40 return _pkg_config[name] 42 return _pkg_config[name]
41 except KeyError: 43 except KeyError:
42 pass 44 pass
43 45
44 raise AttributeError('"{0}" is not a valid configuration value'.format(name)) 46 raise AttributeError(
47 '"{0}" is not a valid configuration value'.format(name))

eric ide

mercurial