diff --git a/lib/query.py b/lib/query.py index f68430128f4b1aa6fddb22f3bb982c7a3f521744..4d01f61395f4de40e029def67b95cdd4eaeb511e 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