From 5d87fd34a5a29bfc79e88c93a6085af9e93eaeab Mon Sep 17 00:00:00 2001 From: David Waterman Date: Wed, 11 Dec 2024 12:09:02 +0000 Subject: [PATCH] Bug fix --- src/dxtbx/serialize/filename.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dxtbx/serialize/filename.py b/src/dxtbx/serialize/filename.py index d144ae854..45531f479 100644 --- a/src/dxtbx/serialize/filename.py +++ b/src/dxtbx/serialize/filename.py @@ -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: