Message177694
Hi,
I am using Python 3.2.3 on Windows XP. I encountered a problem with subprocess.call when using the cwd parameter. I used Google to look for a solution and I found this issue in Python tracker. But this issue seems absolutely reversed!
The subprocess documentation says this: "In particular, the function looks for executable (or for the first item in args) relative to cwd if the executable path is a relative path." But this is NOT true. If I use the path relative to cwd, I get Windows Error 2 (system cannot find the file). If I change the executable's path to be relative to the current directory, where the script is running (i.e. NOT the cwd parameter passed to subprocess.call), it works fine. |
|
Date |
User |
Action |
Args |
2012-12-18 16:16:20 | pepalogik | set | recipients:
+ pepalogik, ned.deily, cvrebert, asvetlov, chris.jerdonek, docs@python, python-dev |
2012-12-18 16:16:19 | pepalogik | set | messageid: <1355847379.74.0.595505492306.issue15533@psf.upfronthosting.co.za> |
2012-12-18 16:16:19 | pepalogik | link | issue15533 messages |
2012-12-18 16:16:17 | pepalogik | create | |
|