コード例 #1
0
 def get_conf(self, working_dir_arg: str, input_file_arg: str,
              conf_path_arg: str) -> MlVToolConf:
     conf_path = conf_path_arg or get_conf_file_default_path(
         working_dir_arg)
     return load_conf_or_default(conf_path, working_dir_arg)
コード例 #2
0
 def get_conf(self, working_dir_param: str, input_file_arg: str, conf_path_arg: str) -> MlVToolConf:
     work_directory = working_dir_param or get_work_directory(input_file_arg)
     conf_path = conf_path_arg or get_conf_file_default_path(work_directory)
     return load_conf_or_default(conf_path, work_directory)
コード例 #3
0
ファイル: test_conf.py プロジェクト: peopledoc/mlvtools
def test_should_get_default_conf_file_path():
    """
        Test get default configuration file path
    """
    conf_file_path = get_conf_file_default_path(work_dir='test')
    assert conf_file_path == join('test', DEFAULT_CONF_FILENAME)