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.0036152236
Marked as misclassified No
Message-id <1272641446.86.0.281480786895.issue8557@psf.upfronthosting.co.za>
In-reply-to
Content
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:

http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx

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.
History
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: <1272641446.86.0.281480786895.issue8557@psf.upfronthosting.co.za>
2010-04-30 15:30:45r.david.murraylinkissue8557 messages
2010-04-30 15:30:42r.david.murraycreate