diff options
author | Mark Palange <palange@lindenlab.com> | 2008-06-06 19:05:34 +0000 |
---|---|---|
committer | Mark Palange <palange@lindenlab.com> | 2008-06-06 19:05:34 +0000 |
commit | a7d9a543e587ffe84b355db7a2e8193bfe6c68b6 (patch) | |
tree | 651ad08ccc2feadc5589e4733974cc4df72e9680 | |
parent | 2f26e1ef712b4334d85a926b77556590578cfac4 (diff) |
Changed the cygwin to windows path conversion to use 'cygpath -w'
-rwxr-xr-x | indra/develop.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/develop.py b/indra/develop.py index d3defbdba1..1f9b08c59c 100755 --- a/indra/develop.py +++ b/indra/develop.py @@ -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'], |