Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dagewa committed Dec 11, 2024
1 parent 88e578f commit 5d87fd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dxtbx/serialize/filename.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +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.abspath(os.path.join(directory, trial_path))
trial_path = os.path.join(directory, trial_path)
trial_path = os.path.abspath(trial_path)
if os.path.exists(trial_path):
return trial_path
else:
Expand Down

0 comments on commit 5d87fd3

Please sign in to comment.