New submission from Sridhar Ratnakumar <[email protected]>:
Assume you have two executables in currect directory:
baz.exe
foo.bar.exe
Now "subprocess.Popen(['baz'])" will run successfully. But
"subprocess.Popen(['foo.bar'])" will throw the following exception:
Traceback (most recent call last):
[...]
File "C:\Python26\lib\subprocess.py", line 483, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Python26\lib\subprocess.py", line 470, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python26\lib\subprocess.py", line 621, in __init__
errread, errwrite)
File "C:\Python26\lib\subprocess.py", line 830, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
The workaround is to specify the full name "foo.bar.exe".
----------
components: Library (Lib), Windows
messages: 101646
nosy: srid
severity: normal
status: open
title: subprocess.Popen raises WindowsError if there is a dot in program name
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue8224>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com