output of shell command

Mark Hammond MarkH at ActiveState.com
Wed Feb 28 11:26:13 CET 2001


David Bolen wrote:

> It's possible that under Pythonwin, the appropriate utility isn't
> being found on your path, which may differ from the path you get in a
> command prompt or in other tools.

Actually, Python looks explicitly in the directory of the current executable.  This is a bug - see my message above.

>  Python should return a runtime
> error describing this file, but perhaps that's being absorbed in
> Pythonwin or something.

Python just blindly added the (wrong) path to w9xpopen.exe to the commandline, and this command is what is failing.  Python 2.1 at least will tell you specifically that w9xpopen.exe can not be found.

Mark.




More information about the Python-list mailing list