Skip to content

Commit 3c64895

Browse files
oestebaneffigies
andcommitted
Apply suggestions from code review
Co-Authored-By: Chris Markiewicz <effigies@gmail.com>
1 parent 0013877 commit 3c64895

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
@@ -517,7 +517,7 @@ def _rebase_path(value, cwd):
517517
pass
518518
else:
519519
try:
520-
value = Path(value).relative_to(cwd)
520+
value = value.relative_to(cwd)
521521
except ValueError:
522522
pass
523523
return value
@@ -561,7 +561,7 @@ def _resolve_path(value, cwd):
561561
pass
562562
else:
563563
if not value.is_absolute():
564-
value = Path(cwd) / value
564+
value = Path(cwd).absolute() / value
565565
return value
566566

567567

0 commit comments

Comments
 (0)