From 88e578f71fa5945116015de8b53a65ceea0301e7 Mon Sep 17 00:00:00 2001 From: David Waterman Date: Wed, 11 Dec 2024 11:17:26 +0000 Subject: [PATCH] Another attempt --- src/dxtbx/serialize/filename.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dxtbx/serialize/filename.py b/src/dxtbx/serialize/filename.py index 1f60f7720..d144ae854 100644 --- a/src/dxtbx/serialize/filename.py +++ b/src/dxtbx/serialize/filename.py @@ -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