Esempio n. 1
0
def load_staticconf(config_path='config.yaml', env_config_path='config-env-dev.yaml'):
    """
    This function loads the static configurations; Note the input arguments
    merely provide defaults if the SERVICE_CONFIG_PATH and/or
    SERVICE_ENV_CONFIG_PATH environment variables are not set.

    :param config_path: path to the config
    :type config_path: string

    :param env_config_path: path to the environment dependent config
    :type env_config_path: string

    """
    SERVICE_CONFIG_PATH = os.environ.get('SERVICE_CONFIG_PATH', config_path)
    SERVICE_ENV_CONFIG_PATH = os.environ.get('SERVICE_ENV_CONFIG_PATH',
                                             env_config_path)
    load_default_config(SERVICE_CONFIG_PATH, SERVICE_ENV_CONFIG_PATH)
Esempio n. 2
0
def load_staticconf(config_path='config.yaml',
                    env_config_path='config-env-dev.yaml'):
    """
    This function loads the static configurations; Note the input arguments
    merely provide defaults if the SERVICE_CONFIG_PATH and/or
    SERVICE_ENV_CONFIG_PATH environment variables are not set.

    :param config_path: path to the config
    :type config_path: string

    :param env_config_path: path to the environment dependent config
    :type env_config_path: string

    """
    SERVICE_CONFIG_PATH = os.environ.get('SERVICE_CONFIG_PATH', config_path)
    SERVICE_ENV_CONFIG_PATH = os.environ.get('SERVICE_ENV_CONFIG_PATH',
                                             env_config_path)
    load_default_config(SERVICE_CONFIG_PATH, SERVICE_ENV_CONFIG_PATH)
Esempio n. 3
0
 def _configure_mycroft(self):
     load_default_config(
         self.args.mycroft_config,
         self.args.mycroft_env_config
     )
Esempio n. 4
0
def setup_config(args, tag):
    if args.config is not None:
        load_default_config(args.config, args.config_override)
    log_util.setup_pipeline_stream_logger(args.run_local, tag)  # one time setup
Esempio n. 5
0
 def _configure_mycroft(self):
     load_default_config(self.args.mycroft_config,
                         self.args.mycroft_env_config)
Esempio n. 6
0
def setup_config(args, tag):
    if args.config is not None:
        load_default_config(args.config, args.config_override)
    log_util.setup_pipeline_stream_logger(args.run_local,
                                          tag)  # one time setup