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')
But this puts /path:C:\Temp /notempfile /closeonend into Argv[2].
Doing just:
os.system('"C:\Program Files\Tortoise SVN\bin\TortoiseProc.exe"
/command:update /path:"C:\Temp\Test" /notempfile /closeonend')
Prints that C:\Program is not a valid command or program.
Any ideas? Is there some python function that doesn't require me to
linearalize the command line, or is there some workaround so the above
example works? (I need the functionality of popen())
/Ludvig
--
Ludvig Strigeus - Software Development - ATI Sweden
email: <[EMAIL PROTECTED]>
phone: +46-(0)31-7737143 | mobile phone: +46-(0)707-838540
us phone: +1-248-327-3222 | skype name: strigeus
_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32