1 from Config import getConfig,makeConfig, ConfigError, configure, allConfigs,setConfigOption, expandConfigPath, config_scope, setSessionValue, getFlavour
2
3
4
5
7 """The ~ and $VARS are automatically expanded. """
8 import os.path
9 return os.path.expanduser(os.path.expandvars(v))
10
12 """Expands vars with the syntax '@{VAR}' from the System config item."""
13 system = getConfig('System')
14 for key in system.options.iterkeys():
15 option = '@{%s}' % key
16 if option in v:
17 v = v.replace(option,system[key])
18 return v
19