X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fscripts%2Ffig2pstex.py;h=90e163de40b2819b3a1d134e1a48b062117afa67;hb=e4065cc1b1394c61108735611e0ebf02b12e6bbe;hp=7530aa3596b88cb3bc9d15d72545888fcd1b1f4a;hpb=da915923fdde16addff4889545ce5db3be47b894;p=lyx.git diff --git a/lib/scripts/fig2pstex.py b/lib/scripts/fig2pstex.py index 7530aa3596..90e163de40 100644 --- a/lib/scripts/fig2pstex.py +++ b/lib/scripts/fig2pstex.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python -tt -# -*- coding: iso-8859-1 -*- +# -*- coding: utf-8 -*- # file fig2pstex.py # This file is part of LyX, the document processor. @@ -27,6 +26,7 @@ # the real eps file will be overwritten by a tex file named file.eps. # +from __future__ import print_function import os, sys # We expect two args, the names of the input and output files. @@ -46,5 +46,5 @@ outbase = os.path.splitext(output)[0] # Generate the PSTEX_T file if os.system('fig2dev -Lpstex %s %s.eps' % (input, outbase)) != 0 or \ os.system('fig2dev -Lpstex_t -p%s %s %s' % (outbase, input, output)) != 0: - print 'fig2dev fails' + print ('fig2dev fails') sys.exit(1)