Skip to content

Commit 8570ee1

Browse files
authored
Merge pull request #158 from OpenDataAlex/process_tracker_python-157
process_tracker_python-157 Config file being reset on import
2 parents c632b98 + 486282f commit 8570ee1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

process_tracker/utilities/settings.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ def __init__(self, config_location=None):
4040
else:
4141
self.config_path = config_location
4242

43-
if (
44-
"process_tracker_config.ini" not in self.config_path
45-
and ".ini" not in self.config_path
46-
):
43+
if ".ini" not in self.config_path:
4744
self.logger.debug(
4845
"process_tracker_config.ini not present. Appending to %s"
4946
% self.config_path
@@ -59,7 +56,7 @@ def __init__(self, config_location=None):
5956
self.logger.debug("Config file is now %s" % self.config_file)
6057
else:
6158
self.logger.debug(
62-
"process_tracker_config.ini present. Setting config_path to config_file."
59+
"process_tracker config file present in path. Setting config_path to config_file."
6360
)
6461
self.config_file = self.config_path
6562

0 commit comments

Comments
 (0)