Skip to content

Commit

Permalink
Merge pull request #136 from xylar/fix-registry-abs-path-bug
Browse files Browse the repository at this point in the history
Fix conversion to absolute paths in config files
  • Loading branch information
xylar authored Oct 16, 2023
2 parents 278aea0 + 72507ce commit 7bffbf4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions polaris/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,8 @@ def _ensure_absolute_paths(self):
if not config.has_section(section):
continue
for option, value in config.items(section):
value = os.path.abspath(value)
config.set(section, option, value)
# not safe to make paths that start with other config options
# into absolute paths
if not value.startswith('$'):
value = os.path.abspath(value)
config.set(section, option, value)

0 comments on commit 7bffbf4

Please sign in to comment.