]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/svg2pdftex.py
Fixes for Japanese documents
[lyx.git] / lib / scripts / svg2pdftex.py
index c574e6a1a45292c711fc373550ee4d73cb6bc875..86564fac2f27b83f9b525b28cc76db8f65a2ca95 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 # -*- coding: utf-8 -*-
 
 # file svg2pdftex.py
@@ -27,6 +27,8 @@
 #   the real PDF file would be overwritten by a TeX file named outputfile.pdf.
 #
 
+from __future__ import print_function
+
 import os, sys, re, subprocess
 
 def runCommand(cmd):
@@ -35,7 +37,7 @@ def runCommand(cmd):
     '''
     res = subprocess.check_call(cmd)
     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)
 
 InkscapeCmd = "inkscape"