diff options
author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2011-02-24 18:44:23 +0100 |
---|---|---|
committer | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2011-02-24 18:44:23 +0100 |
commit | 4484aa1875d2cddb9afea97bd4d7069aec066825 (patch) | |
tree | a947a50f7f5d38c13ba55a5bcdbd49cdb7cb7b18 /graph.py | |
parent | 8985d88d10cccec9c59930379f9327f0fc2594ce (diff) | |
download | logilab-common-4484aa1875d2cddb9afea97bd4d7069aec066825.tar.gz |
[graph] fix command line construction bug
Diffstat (limited to 'graph.py')
-rw-r--r-- | graph.py | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -111,13 +111,12 @@ class DotBackend: pdot.close() if target != 'dot': if mapfile: - print '%s -Tcmapx -o%s -T%s %s -o%s' % (self.renderer, mapfile, - target, dot_sourcepath, outputfile) - subprocess.call('%s -Tcmapx -o%s -T%s %s -o%s' % (self.renderer, mapfile, - target, dot_sourcepath, outputfile), shell=True) + subprocess.call([self.renderer, '-Tcmapx', '-o', mapfile, '-T', target, dot_sourcepath, '-o', outputfile], + shell=True) else: - subprocess.call('%s -T%s %s -o%s' % (self.renderer, target, - dot_sourcepath, outputfile), shell=True) + subprocess.call([self.renderer, '-T', target, + dot_sourcepath, '-o', outputfile], + shell=True) os.unlink(dot_sourcepath) return outputfile |