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

Recommended Answers

All 2 Replies

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.