Skip to content

Commit 5544b4a

Browse files
committed
add quotes to allow spaces in path
1 parent 48eb213 commit 5544b4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ def export_graph(graph_in, base_dir=None, show=False, use_execgraph=False,
920920

921921

922922
def format_dot(dotfilename, format=None):
923-
cmd = 'dot -T%s -O %s' % (format, dotfilename)
923+
cmd = 'dot -T%s -O \'%s\'' % (format, dotfilename)
924924
CommandLine(cmd).run()
925925
logger.info('Converting dotfile: %s to %s format' % (dotfilename, format))
926926

0 commit comments

Comments
 (0)