importosdefencode_value(v):returnvdefdecode_value(v):returnvdefset_global_envs(yaml,envs):fork,vinyaml.items():envs[k]=encode_value(v)defget_global_env(env_name):""" get os environment value """ifenv_namenotinos.environ:raiseValueError("can not find config of {}".format(env_name))v=os.environ[env_name]returndecode_value(v)