2 Global config utilities for initialization.
9 from os.path
import expanduser
13 """! Read global configuration files.
14 @param filename name of json file
15 @return a ConfigParser object with the configuration settings
17 config = configparser.ConfigParser()
18 config_files = config.read([
19 os.path.join(expanduser(
"~"),
".hpsmc"),
20 os.path.abspath(
".hpsmc")])
21 return config, config_files
25 """! Convert config value to Python readable value."""
26 if val ==
'True' or val ==
'true':
28 elif val ==
'False' or val ==
'false':
def _read_global_config()
Read global configuration files.
def convert_config_value(val)
Convert config value to Python readable value.