]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/fig2pdftex.py
Fix the configure script. Python apparently does not like tabs as much as spaces.
[lyx.git] / lib / scripts / fig2pdftex.py
index 6f711bffbce6f2e26595b8e3ca840ef46000a718..e20b2ad06b32e92169113cdc69af643de1c7da61 100644 (file)
@@ -78,7 +78,7 @@ else:
     # The generated PostScript commands are extracted from epstopdf, distributed
     # with tetex.
     epsfile = outbase + '.pstex'
-    tmp = open(epsfile + '.??', 'w')
+    tmp = mkstemp()
     boundingboxline = re.compile('%%BoundingBox:\s+(\d*)\s+(\d*)\s+(\d*)\s+(\d*)')
     for line in open(epsfile).xreadlines():
         if line[:13] == '%%BoundingBox':