Skip to content

Commit 4544b34

Browse files
oestebaneffigies
andauthored
Apply suggestions from code review
Co-Authored-By: Chris Markiewicz <effigies@gmail.com>
1 parent b938fc9 commit 4544b34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/base/traits_extension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def _rebase_path(value, cwd):
514514
pass
515515
else:
516516
try:
517-
value = Path(value).relative_to(cwd)
517+
value = value.relative_to(cwd)
518518
except ValueError:
519519
pass
520520
return value
@@ -558,7 +558,7 @@ def _resolve_path(value, cwd):
558558
pass
559559
else:
560560
if not value.is_absolute():
561-
value = Path(cwd) / value
561+
value = Path(cwd).absolute() / value
562562
return value
563563

564564

0 commit comments

Comments
 (0)