From 1f71cebdc59c80a6b14fcaaba46986d03c42cd62 Mon Sep 17 00:00:00 2001 From: Roy de Goei <goei@astron.nl> Date: Mon, 9 May 2022 08:11:38 +0200 Subject: [PATCH] SDC-545: Remove print and use correct path (somehow old code was back) --- lib/query.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/query.py b/lib/query.py index f684301..4d01f61 100644 --- a/lib/query.py +++ b/lib/query.py @@ -42,20 +42,15 @@ def lta_on_error_print(func): def parse_config(path=None): default_path = expanduser("~/.siplibrc") - test_path = pkg_resources.resource_string(__name__, "etc/.siplibrc") + test_path = os.path.join(os.path.dirname(__file__), "etc/.siplibrc") config = ConfigParser() if path: config_paths = [path] else: config_paths = [default_path, test_path] - print("RGOE") - print(config_paths) - print("-------------------------------") found = config.read(config_paths) - print(found) if not found: raise SystemExit(f'Cannot find configuration file in {config_paths}: please create one') - return config -- GitLab