Hi I am trying to automate svn checkouts using python script. this below command works from windows command prompt. I tried to use subprocess.call and subprocess.Popen ,

C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe /command:checkout /url: http://xxx-svn/svn/branches/Common/module/Common_Jars_v1_1/lib /path:D:/svn-test1 /closeonend:2

it is not able to recognise the parameter

> C:\Users\rajesh\Desktop>python svn-test.py
> Traceback (most recent call last):
>   File "svn-test.py", line 5, in <module>
>     process = subprocess.call(["C:\\Program Files\\TortoiseSVN\\bin\TortoiseProc.exe /command:checkout"], stdout=subprocess.PIPE)
>   File "C:\Python32\lib\subprocess.py", line 471, in call
>     return Popen(*popenargs, **kwargs).wait()
>   File "C:\Python32\lib\subprocess.py", line 745, in __init__
>     restore_signals, start_new_session)
>   File "C:\Python32\lib\subprocess.py", line 964, in _execute_child
>     startupinfo)
> WindowsError: [Error 2] The system cannot find the file specified

command which i used

subprocess.call(['C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe /command:checkout /url: http://xxx-svn/svn/branches/Common/module/Common_Jars_v1_1/lib /path:D:/svn-test1  /closeonend:2'])

please help me to solve this issue

Glad you solved it. I suspected the space in the directory name that gives Windows a hard time every now and then.

This article has been dead for over six months. Start a new discussion instead.