From eddde23de6b133486c6d23a19f9197025a00c459 Mon Sep 17 00:00:00 2001 From: Vincent Danno Date: Mon, 10 May 2021 11:27:15 +0200 Subject: Use constants instead of hard-coding paths Signed-off-by: Vincent Danno Change-Id: I9bef7db7584d6b615ef102d13797914095512733 --- xtesting/core/campaign.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xtesting/core') diff --git a/xtesting/core/campaign.py b/xtesting/core/campaign.py index 7c766e53..51a145c1 100644 --- a/xtesting/core/campaign.py +++ b/xtesting/core/campaign.py @@ -26,6 +26,7 @@ from six.moves import urllib from xtesting.core import testcase from xtesting.utils import env +from xtesting.utils import constants __author__ = "Cedric Ollivier " @@ -216,9 +217,9 @@ def main(): os.makedirs(testcase.TestCase.dir_results) if env.get('DEBUG').lower() == 'true': logging.config.fileConfig(pkg_resources.resource_filename( - 'xtesting', 'ci/logging.debug.ini')) + 'xtesting', constants.DEBUG_INI_PATH)) else: logging.config.fileConfig(pkg_resources.resource_filename( - 'xtesting', 'ci/logging.ini')) + 'xtesting', constants.INI_PATH)) logging.captureWarnings(True) Campaign.zip_campaign_files() -- cgit 1.2.3-korg