[英]SVN export not working when called from Python's subprocess.call
我有以下函數從Subversion repositorio獲取文件:
def getFileSVN(remoteFile, localFile):
remoteFile = SVN_URL + '/' + remoteFile
command = '{0} export {1} {2}'.format(SVN, remoteFile, localFile)
ret = subprocess.call(command.split())
if ret == 0:
return True
else:
return False
該函數調用:
ret = getFileSVN(branches/branch/somefile, /tmp/tmpdir/somefile)
但它始終失敗:
svn: Can't open '/tmp/tmpdir/tempfile.tmp': No such file or directory
我找不到我的錯誤。
tmpdir存在嗎? 我自己不使用SVN,但可能是在嘗試創建文件之前它沒有創建文件夾。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.