Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 55be540

Browse files
ENH: Let indirectory handle nipype.utils.filemanip.Path
Addresses #2985 (comment)
1 parent 01a2772 commit 55be540

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎nipype/utils/filemanip.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def loadpkl(infile, versioning=False):
682682
pklopen = gzip.open if infile.suffix == '.pklz' else open
683683
pkl_metadata = None
684684

685-
with indirectory(str(infile.parent)):
685+
with indirectory(infile.parent):
686686
pkl_file = pklopen(infile.name, 'rb')
687687

688688
try: # Look if pkl file contains version file
@@ -1039,7 +1039,7 @@ def relpath(path, start=None):
10391039
@contextlib.contextmanager
10401040
def indirectory(path):
10411041
cwd = os.getcwd()
1042-
os.chdir(path)
1042+
os.chdir(str(path))
10431043
try:
10441044
yield
10451045
finally:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /