[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-25 Thread Eric Smith
Eric Smith added the comment: I agree with David that this is a Windows problem. I copied xcopy.exe into a local directory as xcopy.exe and xcopy.a.exe. When running this VBScript, the first line runs, the second gives me an error 0x8007002, "The system could not find the file specified". WS

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread R. David Murray
R. David Murray added the comment: In order to do that someone will need to confirm that this affects all versions of windows, and whether or not it is a bug in windows or the expected behavior of CreateProcess. -- ___ Python tracker

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread STINNER Victor
STINNER Victor added the comment: Oops. I wanted to write: "This issue might be documented in subprocess documentation" :-/ -- ___ Python tracker ___ ___

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread STINNER Victor
STINNER Victor added the comment: This issue might be documentation is subprocess documentation. -- nosy: +haypo ___ Python tracker ___ __

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread R. David Murray
R. David Murray added the comment: Note that it works with shell=True. Which is what you would expect if it works in the shell. Without shell=True, the program name is being passed to CreateProcess directly. Popen("foo") results in the same cannot find file error for me if the file is foo.b

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin priority: -> normal stage: -> test needed ___ Python tracker ___ ___ Python-bugs-lis

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Note that typing "foo.bar" in the Windows command line works, only subprocess is not able to find the executable. -- ___ Python tracker ___

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : 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): [...] Fi