Changed the cygwin to windows path conversion to use 'cygpath -w'

master
Mark Palange 2008-06-06 19:05:34 +00:00
parent 2f26e1ef71
commit a7d9a543e5
1 changed files with 2 additions and 4 deletions

View File

@ -39,6 +39,7 @@ import re
import shutil
import socket
import sys
import commands
class CommandError(Exception):
pass
@ -535,16 +536,13 @@ class WindowsSetup(PlatformSetup):
finally:
os.chdir(cwd)
class CygwinSetup(WindowsSetup):
def __init__(self):
super(CygwinSetup, self).__init__()
self.generator = 'vc71'
def cmake_commandline(self, src_dir, build_dir, opts, simple):
dos_dir = src_dir.split('/')[2:]
dos_dir[0] = dos_dir[0] + ":"
dos_dir = '/'.join(dos_dir)
dos_dir = commands.getoutput("cygpath -w %s" % src_dir)
args = dict(
dir=dos_dir,
generator=self.gens[self.generator.lower()]['gen'],