mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
svg2pdftex.py: make print work with Python 2 and 3
(cherry picked from commit 913619c80a
)
This commit is contained in:
parent
53ba30f411
commit
21380b9012
@ -35,7 +35,7 @@ def runCommand(cmd):
|
|||||||
'''
|
'''
|
||||||
res = subprocess.check_call(cmd)
|
res = subprocess.check_call(cmd)
|
||||||
if res != 0:
|
if res != 0:
|
||||||
print "Command '%s' fails (exit code: %i)." % (res.cmd, res.returncode)
|
print ("Command '%s' fails (exit code: %i)." % (res.cmd, res.returncode))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
InkscapeCmd = "inkscape"
|
InkscapeCmd = "inkscape"
|
||||||
|
Loading…
Reference in New Issue
Block a user