Message213650
| Author |
eric.smith |
| Recipients |
Jovik, docs@python, eric.smith, r.david.murray, terry.reedy |
| Date |
2014年03月15日.11:52:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1394884336.24.0.280247855695.issue20927@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In the first example, you switch from "./app" to "app.exe" when using shell=True.
What happens to any of your examples if you add ".exe" without shell=True?
Popen eventually calls CreateProcess on Windows. From: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx, describing the lpApplicationName parameter: "This parameter must include the file name extension; no default extension is assumed."
Running the shell though, you don't need the extension. |
|