Message329253
Yes, the string with spaces must be enclosed in double quotes. But when a programmer calls CreateProcess(), he himself puts double quotes or calls CommandLineToArgvW().
subprocess.list2cmdline() is always called and can spoil the launch string.
I propose to add an additional argument list2cmdline=False in subprocess.run() to disable this function.
subprocess.run(['"program path"', '/param="space space"'], list2cmdline=False)
subprocess.run('"program path" /param="space space"', list2cmdline=False) |
|
Date |
User |
Action |
Args |
2018-11-04 20:02:43 | Roffild | set | recipients:
+ Roffild, paul.moore, tim.golden, zach.ware, eryksun, steve.dower |
2018-11-04 20:02:43 | Roffild | set | messageid: <1541361763.54.0.788709270274.issue35154@psf.upfronthosting.co.za> |
2018-11-04 20:02:43 | Roffild | link | issue35154 messages |
2018-11-04 20:02:43 | Roffild | create | |
|