On Sun, Jan 23, 2011 at 2:10 PM, "Martin v. Löwis" <mar...@v.loewis.de> wrote: >> ""c:\path\to\subwcrev.exe" arg1 arg2 ..." just works. I don't understand >> why (strange syntax), but it works :-) >> >> When I had the problem, it worked with extra quotes, but not without. It >> is strange because the program ("c:\path\to\subwcrev.exe") existed!? > > I'd really like to understand it before changing it. The part "it > sometimes works, then fails" is particularly puzzling, and indicates > that the *actual* problem is entirely unrelated to the quoting.
I used ProcMon to track down the actual command that the system() call creates. The unmodified code produces this: C:\Windows\system32\cmd.exe /c "C:\Program Files\TortoiseSVN\bin\subwcrev.exe" .. ..\Modules\getbuildinfo.c "E:\coding\py3k\PCbuild\Win32-temp-pgi\pythoncore\\getbuildinfo2.c" whereas my patch produces this: C:\Windows\system32\cmd.exe /c ""C:\Program Files\TortoiseSVN\bin\subwcrev.exe" .. ..\Modules\getbuildinfo.c "E:\coding\py3k\PCbuild\Win32-temp-pgi\pythoncore\\getbuildinfo2.c"" I pasted those two lines on the command prompt. The first results in the error "'C:\Program' is not recognized ...... ". The second one does the right thing. It would be great if someone could run ProcMon on a "normal" system and see what command is created. Thanks Prasun _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com