fig2pdftex: Fix for windows

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25252 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-06-15 07:31:42 +00:00
parent 58ad19a232
commit 71acc7ea52

View File

@ -78,7 +78,7 @@ else:
# The generated PostScript commands are extracted from epstopdf, distributed # The generated PostScript commands are extracted from epstopdf, distributed
# with tetex. # with tetex.
epsfile = outbase + '.pstex' epsfile = outbase + '.pstex'
tmp = open(epsfile + '.??', 'w') tmp = mkstemp()
boundingboxline = re.compile('%%BoundingBox:\s+(\d*)\s+(\d*)\s+(\d*)\s+(\d*)') boundingboxline = re.compile('%%BoundingBox:\s+(\d*)\s+(\d*)\s+(\d*)\s+(\d*)')
for line in open(epsfile).xreadlines(): for line in open(epsfile).xreadlines():
if line[:13] == '%%BoundingBox': if line[:13] == '%%BoundingBox':