From 76774c6fa30d7512bfdbc595376960d83b4c8187 Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Fri, 5 Feb 2016 13:52:13 -0200 Subject: [PATCH] avocado/core/settings.py: simple optimization Reuse the value of "_config_path_intree" to set "_config_path_intree_extra". Signed-off-by: Cleber Rosa --- avocado/core/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avocado/core/settings.py b/avocado/core/settings.py index cc3ae656..ee17a61b 100644 --- a/avocado/core/settings.py +++ b/avocado/core/settings.py @@ -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') _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_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_path_system = os.path.join(_config_dir_system, config_filename) -- GitLab