From 71acc7ea52cc2cb304e1ef4d7fb9c658992dc94f Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 15 Jun 2008 07:31:42 +0000 Subject: [PATCH] fig2pdftex: Fix for windows git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25252 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/scripts/fig2pdftex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scripts/fig2pdftex.py b/lib/scripts/fig2pdftex.py index 6f711bffbc..e20b2ad06b 100644 --- a/lib/scripts/fig2pdftex.py +++ b/lib/scripts/fig2pdftex.py @@ -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':