提交 76774c6f 编写于 作者: C Cleber Rosa

avocado/core/settings.py: simple optimization

Reuse the value of "_config_path_intree" to set "_config_path_intree_extra".
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 30d18d20
...@@ -33,7 +33,7 @@ _config_dir_system_extra = os.path.join(CFG_DIR, 'avocado', 'conf.d') ...@@ -33,7 +33,7 @@ _config_dir_system_extra = os.path.join(CFG_DIR, 'avocado', 'conf.d')
_config_dir_local = os.path.join(os.path.expanduser("~"), '.config', 'avocado') _config_dir_local = os.path.join(os.path.expanduser("~"), '.config', 'avocado')
_source_tree_root = os.path.join(sys.modules[__name__].__file__, "..", "..", "..") _source_tree_root = os.path.join(sys.modules[__name__].__file__, "..", "..", "..")
_config_path_intree = os.path.join(os.path.abspath(_source_tree_root), 'etc', 'avocado') _config_path_intree = os.path.join(os.path.abspath(_source_tree_root), 'etc', 'avocado')
_config_path_intree_extra = os.path.join(os.path.abspath(_source_tree_root), 'etc', 'avocado', 'conf.d') _config_path_intree_extra = os.path.join(_config_path_intree, 'conf.d')
config_filename = 'avocado.conf' config_filename = 'avocado.conf'
config_path_system = os.path.join(_config_dir_system, config_filename) config_path_system = os.path.join(_config_dir_system, config_filename)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册