[issue1559298] test_popen fails on Windows if installed to "Program Files"
Florent Xicluna
report at bugs.python.org
Fri Jan 15 09:52:21 CET 2010
Florent Xicluna <laxyf at yahoo.fr> added the comment:
It is on Python 2.7a2
>>> os.popen('"C:\\Python27\\python.exe" -c "import sys; print sys.argv" 42').read()
''
>>> os.popen('""C:\\Python27\\python.exe" -c "import sys; print sys.argv" 42"').read()
"['-c', '42']\n"
>>> os.popen3('"C:\\Python27\\python.exe" -c "import sys; print sys.argv" 42')[2].read()
'\'C:\\Python27\\python.exe" -c "import\' est pas reconnu en tant que commande interne ou externe, un programme executable ou un fichier de commandes.\n'
It may be related to the test_popen failure.
Actually, it seems that the outer double quotes are removed before executing the cmdstring:
C:\Python27\python.exe" -c "import
^ ^
----------
nosy: +flox
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1559298>
_______________________________________
More information about the Python-bugs-list
mailing list