Enrico's cygwin fix to configure.py

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13784 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2006-04-29 13:48:24 +00:00
parent 6573ea27bc
commit bc3cdedf14
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2006-04-29 Enrico Forestieri <forenr@tlc.unipr.it>
* configure.py: fix a cygwin compatibility problem with configure.py
2006-04-27 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* configure.py (removeExtraFiles): remove.

View File

@ -82,7 +82,7 @@ def checkCygwinPath(srcdir):
''' Adjust PATH for Win32 (Cygwin) '''
if sys.platform == 'cygwin':
from tempfile import mkstemp
fd, tmpfname = mkstemp(suffix='.ltx')
fd, tmpfname = mkstemp(suffix='.ltx', dir='/tmp')
os.write(fd, r'''
\documentstyle{article}
\begin{document}\end{document}
@ -90,7 +90,7 @@ def checkCygwinPath(srcdir):
os.close(fd)
inpname = cmdOutput('cygpath -m ' + tmpfname)
# a wrapper file
wfd, wtmpfname = mkstemp(suffix='.ltx')
wfd, wtmpfname = mkstemp(suffix='.ltx', dir='/tmp')
wtmpfname = cmdOutput('cygpath -m ' + wtmpfname)
os.write(wfd, r'\input{' + inpname + '}' )
os.close(wfd)