Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py
- ===================================================================
- --- scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py (Revision 56198)
- +++ scons/scons-local-1.2.0.d20090223/SCons/Platform/win32.py (Arbeitskopie)
- @@ -173,10 +173,24 @@
- return result
- def spawn(sh, escape, cmd, args, env):
- - if not sh:
- - sys.stderr.write("scons: Could not find command interpreter, is it in your PATH?\n")
- - return 127
- - return exec_spawn([sh, '/C', escape(string.join(args))], env)
- + import subprocess
- + newargs = " ".join(args[1:])
- + cmdline = cmd + " " + newargs
- + startupinfo = subprocess.STARTUPINFO()
- + startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
- + proc = subprocess.Popen(cmdline,
- + stdin = subprocess.PIPE,
- + stdout = subprocess.PIPE,
- + stderr = subprocess.PIPE,
- + startupinfo = startupinfo,
- + shell = False, env = env)
- + data, err = proc.communicate()
- + rv = proc.wait()
- + if rv:
- + print "====="
- + print err
- + print "====="
- + return rv
- # Windows does not allow special characters in file names anyway, so no
- # need for a complex escape function, we will just quote the arg, except
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement