Windows by accomodating platform-specific behavior in the way
subprocess.Popen() calls handle shell= arguments with lists.
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3915
fdb21ef1-2011-0410-befe-
b5e4ea1792b1
if not argv:
argv = os.environ[self.shell_variable]
try:
- p = subprocess.Popen(argv)
+ # Per "[Python-Dev] subprocess insufficiently platform-independent?"
+ # http://mail.python.org/pipermail/python-dev/2008-August/081979.html "+
+ # Doing the right thing with an argument list currently
+ # requires different shell= values on Windows and Linux.
+ p = subprocess.Popen(argv, shell=(sys.platform=='win32'))
except EnvironmentError, e:
sys.stderr.write('scons: %s: %s\n' % (argv[0], e.strerror))
else: