Message209748
The os.exec* functions seem to mangle arguments on Windows. So far I noticed the supplied argv gets split on spaces, and double-quotes get stripped when not escaped.
Example, on Windows 7:
>>> platform.platform()
'Windows-7-6.1.7601-SP1'
>>> os.execlp('python', 'python', '-c', "sys=__import__('sys');print(sys.argv)", 'Hello World')
['-c', 'Hello', 'World']
Same on Archlinux: ['-c', 'Hello World'] as expected.
Both running Python 3.3.3. |
|
Date |
User |
Action |
Args |
2014-01-31 07:20:39 | The Compiler | set | recipients:
+ The Compiler |
2014-01-31 07:20:39 | The Compiler | set | messageid: <1391152839.26.0.437112268275.issue20451@psf.upfronthosting.co.za> |
2014-01-31 07:20:39 | The Compiler | link | issue20451 messages |
2014-01-31 07:20:38 | The Compiler | create | |
|