Message277229
| Author |
paul.moore |
| Recipients |
paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware |
| Date |
2016-09-22.15:26:28 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1474557988.52.0.870253250301.issue28247@psf.upfronthosting.co.za> |
| In-reply-to |
|
| Content |
(1) It starts an extra process (unless you're running the application from cmd.exe) and (2) in some cases, the system won't recognise a cmd file as an executable. For a simple example,
t.cmd:
@echo Hello from t
example.py:
from subprocess import run
run(["t")]
If you run example.py you get "FileNotFoundError: [WinError 2] The system cannot find the file specified". |
|