Hm
sorry,
I
missed the r"" in my code below. I used r"" in my tests. system still
fails.
Thanks
anyway.
Someone told me to prepend "; " to the command line, that seems to work.
Any idea why?
/Ludvig
-----Original Message-----At 02:08 AM 5/13/2005, Ludvig Strigeus wrote:
From: Bob Gailer [mailto:[EMAIL PROTECTED]
Sent: den 13 maj 2005 18:26
To: Ludvig Strigeus; [email protected]
Subject: Re: [python-win32] Bug with system()/popen() ?
I'm trying to use system to run the following command:
cmd = C:\Program Files\Tortoise SVN\bin\TortoiseProc.exe
Argv[1] = /command:update
Argv[2] = /path:"C:\Temp\Test"
Argv[3] = /notempfile
Argv[4] = /closeonend
But all my attempts to convert this to a linearalized command line
fails...
This is my most successful try (don't ask me why i have "" at the start,
it doesn't work at all otherwise):
os.system('""C:\Program Files\Tortoise SVN\bin\TortoiseProc.exe"
/command:update /path:"C:\Temp\Test" /notempfile /closeonend')
At the interactive prompt type:
>>> '""C:\Program Files\Tortoise SVN\bin\TortoiseProc.exe"/command:update /path:"C:\Temp\Test" /notempfile /closeonend
And what you get is:
'""C:\\Program Files\\Tortoise SVN\x08in\\TortoiseProc.exe"/command:update /path:"C:\\Temp\\Test" /notempfile /closeonend'
Notice something odd? What happened to the \b?
From the Refernce Manual: "Unless an "r" or "R" prefix is present, escape sequences in strings are interpreted according to rules similar to those used by Standard C." \b is the escape sequence for backspace.
That might help!
[snip]Bob Gailer
mailto:[EMAIL PROTECTED]
510 558 3275 home
720 938 2625 cell
_______________________________________________ Python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32
