Skip to content

Commit

Permalink
reg: use os.path b/c relpath only has walk_up in python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Sep 10, 2024
1 parent 608fd71 commit 42936ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dcnum/logic/ctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def task_enforce_basin_strategy(self):
paths = [pin]
pout = pathlib.Path(hout.filename).resolve().parent
try:
paths.append(pout.relative_to(pin))
paths.append(os.path.relpath(pin, pout))
except ValueError:
# This means it is impossible to compute a relative
# path (e.g. different drive letter on Windows).
Expand Down

0 comments on commit 42936ff

Please sign in to comment.