Skip to content

Commit

Permalink
Another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
dagewa committed Dec 11, 2024
1 parent c129212 commit 88e578f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dxtbx/serialize/filename.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def resolve_path(path, directory=None):
return ""
trial_path = os.path.expanduser(os.path.expandvars(path))
if directory and not os.path.isabs(trial_path):
trial_path = os.path.join(directory, trial_path)
trial_path = os.path.abspath(os.path.join(directory, trial_path))
if os.path.exists(trial_path):
return os.path.abspath(trial_path)
return trial_path
else:
return path

0 comments on commit 88e578f

Please sign in to comment.