We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01a2772 + 55be540 commit 2b6b368Copy full SHA for 2b6b368
nipype/utils/filemanip.py
@@ -682,7 +682,7 @@ def loadpkl(infile, versioning=False):
682
pklopen = gzip.open if infile.suffix == '.pklz' else open
683
pkl_metadata = None
684
685
- with indirectory(str(infile.parent)):
+ with indirectory(infile.parent):
686
pkl_file = pklopen(infile.name, 'rb')
687
688
try: # Look if pkl file contains version file
@@ -1039,7 +1039,7 @@ def relpath(path, start=None):
1039
@contextlib.contextmanager
1040
def indirectory(path):
1041
cwd = os.getcwd()
1042
- os.chdir(path)
+ os.chdir(str(path))
1043
try:
1044
yield
1045
finally:
0 commit comments