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)) |