Issue 4164, correction.
svn: r15722
This commit is contained in:
parent
c09f8e4950
commit
724e09dfc9
@ -448,7 +448,7 @@ class GVPsDoc(GVDocBase):
|
|||||||
# See bug tracker issue 2815
|
# See bug tracker issue 2815
|
||||||
command = 'dot -Tps:cairo -o"%s" "%s"' % (self._filename, tmp_dot)
|
command = 'dot -Tps:cairo -o"%s" "%s"' % (self._filename, tmp_dot)
|
||||||
dotversion = Popen(['dot', '-V'], stderr=PIPE).communicate(input=None)[1]
|
dotversion = Popen(['dot', '-V'], stderr=PIPE).communicate(input=None)[1]
|
||||||
if dotversion.find('2.26.3'):
|
if dotversion.find('2.26.3') != -1:
|
||||||
command=command.replace(':cairo','')
|
command=command.replace(':cairo','')
|
||||||
os.system(command)
|
os.system(command)
|
||||||
# Delete the temporary dot file
|
# Delete the temporary dot file
|
||||||
@ -781,7 +781,7 @@ class GVPdfGsDoc(GVDocBase):
|
|||||||
# See bug tracker issue 2815
|
# See bug tracker issue 2815
|
||||||
command = 'dot -Tps:cairo -o"%s" "%s"' % ( tmp_ps, tmp_dot )
|
command = 'dot -Tps:cairo -o"%s" "%s"' % ( tmp_ps, tmp_dot )
|
||||||
dotversion = Popen(['dot', '-V'], stderr=PIPE).communicate(input=None)[1]
|
dotversion = Popen(['dot', '-V'], stderr=PIPE).communicate(input=None)[1]
|
||||||
if dotversion.find('2.26.3'):
|
if dotversion.find('2.26.3') != -1:
|
||||||
command=command.replace(':cairo','')
|
command=command.replace(':cairo','')
|
||||||
os.system(command)
|
os.system(command)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user