Skip to content

Commit

Permalink
hopefully last path fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
xhajnal committed May 6, 2021
1 parent c5708d9 commit c8d1561
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ def load_config(config_file_path=False):
# print("path", config_file_path)

if config_file_path is False:
config_file_path = os.path.join(workspace, "../../config.ini")
config_file_path = os.path.realpath(os.path.join(workspace, "../../config.ini"))
else:
if os.path.isabs(Path(config_file_path)):
config_file_path = config_file_path
else:
config_file_path = os.path.join(workspace, config_file_path)

config_file_path = Path(config_file_path)
config.read(config_file_path)

if not config.sections():
Expand Down

0 comments on commit c8d1561

Please sign in to comment.