def scons_get_cfg_val(option): usr_config = usr_cfg_main() sys_config = sys_cfg_main() if option in usr_config.keys(): return get_opt_val(usr_config, option) elif option in sys_config.keys(): return get_opt_val(sys_config, option) else: return 'n'
def scons_usr_int_option(option): options = usr_cfg_main() return int(options.get(option))
def scons_usr_bool_option(option): options = usr_cfg_main() if option in options.keys(): return options[option].lower() return 'n'
def scons_usr_string_option(option): options = usr_cfg_main() value = options.get(option) if value: value = value.strip('"') return value