make sure we get the correct path in windows

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13973 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2006-05-31 14:28:29 +00:00
parent 5c8f40106a
commit 2d73110e2c

View File

@ -81,7 +81,9 @@ def createDirectories():
def checkCygwinPath(srcdir):
''' Adjust PATH for Win32 (Cygwin) '''
cygwin_path_fix = ''
if sys.platform == 'cygwin':
if os.name == 'nt':
cygwin_path_fix = 'true'
elif sys.platform == 'cygwin':
from tempfile import mkstemp
fd, tmpfname = mkstemp(suffix='.ltx', dir='/tmp')
os.write(fd, r'''