This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients brian.curtin, dabrahams, docs@python, mark, r.david.murray
Date 2010-04-30.15:30:42
SpamBayes Score 0.00361522
Marked as misclassified No
Message-id <>
Well, it seems I was mistaken when I thought I knew how this worked :)
Checking the os.exec documentation linked from the subprocess page, I see that when an environment is supplied PATH is indeed checked in it.  The documentation for CreateProcess, however, indicates that PATH is ignored, and any extension must be supplied explicitly.

At the very least the docs should be updated to clarify that execvpe is used when an environment is passed on posix, and to link to the CreateProcess docs.  A discussion of PATH could perhaps be put in a note or footnote (probably footnote, there are enough notes already in those docs!)

I'm not sure how one creates a good portability story out of these pieces.  It doesn't seem as though there is any way to harmonize the two, since we are dealing with the semantics of system calls over which we have no control.

For reference, here is (a?) link to CreateProcess docs that I found via Google:

It doesn't look like the kind of link that one could trust to be stable, though, so I'm not sure if we should include it in the docs.

I'm adding Brian Curtin as nosy to see if he knows whether or not there are permalink-like links to the relevant Microsoft documentation that we could use.
Date User Action Args
2010-04-30 15:30:47r.david.murraysetrecipients: + r.david.murray, mark, brian.curtin, docs@python, dabrahams
2010-04-30 15:30:46r.david.murraysetmessageid: <>
2010-04-30 15:30:45r.david.murraylinkissue8557 messages
2010-04-30 15:30:42r.david.murraycreate