Skip to content

Commit 612ed03

Browse files
committed
fix tests
1 parent b159b01 commit 612ed03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/pipeline/engine/workflows.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,10 @@ def run(self, plugin=None, plugin_args=None, updatehash=False):
597597
write_workflow_prov(execgraph, prov_base, format='all')
598598

599599
if config.resource_monitor:
600+
base_dir = self.base_dir or os.getcwd()
600601
write_workflow_resources(
601602
execgraph,
602-
filename=op.join(self.base_dir, self.name, 'resource_monitor.json')
603+
filename=op.join(base_dir, self.name, 'resource_monitor.json')
603604
)
604605
return execgraph
605606

0 commit comments

Comments
 (0)