[Bug 21338] cmd needs to set COMSPEC, PATHEXT, and PROMPT environment variables

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jan 11 23:08:08 CST 2010


http://bugs.winehq.org/show_bug.cgi?id=21338





--- Comment #4 from Dima Ryazanov <dima at gmail.com>  2010-01-11 23:08:07 ---
I'm using SCons version v1.2.0.r3842.

Here's my SConstruct:

env = Environment()
env.Command("foo", "", "C:/Python26/python temp.py")

temp.py:

import os
os.popen("dir")

And the output:

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ... 
C:/Python26/python temp.py
Traceback (most recent call last):
  File "temp.py", line 2, in <module>
    os.popen("dir")
RuntimeError: Cannot locate a COMSPEC environment variable to use as the shell
scons: *** [foo] Error 1
scons: building terminated because of errors.


I can try to come up with a simple C testcase, if that helps.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list