Bugs item #1485447, was opened at 2006-05-10 11:10 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1485447&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Windows Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Mark Sheppard (markshep) Assigned to: Nobody/Anonymous (nobody) Summary: subprocess.Popen + cwd + relative args[0] Initial Comment: The documentation for subprocess.Popen says: """ args should be a string, or a sequence of program arguments. The program to execute is normally the first item in the args sequence or string, but can be explicitly set by using the executable argument. """ and """ If cwd is not None, the current directory will be changed to cwd before the child is executed. """ However if you set the cwd parameter and in args[0] specify a relative path to an executable from the cwd directory it doesn't work. To get it to work you have to make args[0] use a relative path from the current directory of the python process, not the directory you specify in the cwd parameter. Possibly this is the intended behaviour, in which case the documentation is lacking by omitting this fact. Or maybe this isn't the intended behaviour in which case it's a bug in the code. I've not tested this on any platform other than Windows so don't know if this is consistent across platforms. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1485447&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com