def load_environment(config_path, environment):
 env_plugins = dir_find(config_path, 'env.d', raise_if_missing=False)
 if (env_plugins is not False):
  _extra_config(user_defined_config=environment, base_dir=env_plugins)
  logger.debug('Loaded environment from {}'.format(config_path))
 return environment

def load_environment ( config_path , environment ) : env_plugins = dir_find ( config_path , 'env.d' , raise_if_missing = False ) if ( env_plugins is not False ) : _extra_config ( user_defined_config = environment , base_dir = env_plugins ) logger . debug ( 'Loaded environment from {}' . format ( config_path ) ) return environment
create an environment dictionary from config files .