Skip to content

Commit 2f914bd

Browse files
committed
No longer concatenating extensions
1 parent 557aad3 commit 2f914bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nipype/pipeline/engine/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,7 @@ def export_graph(graph_in, base_dir=None, show=False, use_execgraph=False,
10551055
def format_dot(dotfilename, format='png'):
10561056
"""Dump a directed graph (Linux only; install via `brew` on OSX)"""
10571057
if format != 'dot':
1058+
dotfilename = os.path.splitext(dotfilename)[0]
10581059
cmd = 'dot -T%s -O \'%s\'' % (format, dotfilename)
10591060
try:
10601061
CommandLine(cmd, resource_monitor=False).run()

0 commit comments

Comments
 (0)