Skip to content

Commit 77e5257

Browse files
committed
improve log trace when os.getcwd() failed
1 parent afa74b7 commit 77e5257

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ def run(self, updatehash=False):
434434
# Changing back to cwd is probably not necessary
435435
# but this makes sure there's somewhere to change to.
436436
cwd = os.path.split(outdir)[0]
437-
logger.debug('Current folder does not exist, changing to "%s" instead.', cwd)
437+
logger.debug('Current folder "%s" does not exist, changing to "%s" instead.',
438+
os.getenv('PWD', 'unknown'), cwd)
438439

439440
os.chdir(outdir)
440441
try:

0 commit comments

Comments
 (0)