diff --git a/src/dcnum/logic/ctrl.py b/src/dcnum/logic/ctrl.py index a2c0f64..46a4c32 100644 --- a/src/dcnum/logic/ctrl.py +++ b/src/dcnum/logic/ctrl.py @@ -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).