if os.path.exists(self.folder):
os.chdir(self.folder) # go into repository
subprocess.check_call(['svn', 'switch', self.svnPath]) # and update to the URL we got
else:
subprocess.check_call(['svn', 'co', self.svnPath, self.folder])# just download it
if os.path.exists(self.folder):
os.chdir(self.folder) # go into repository
subprocess.check_call(['svn', 'switch', self.svnPath]) # and update to the URL we got
else:
subprocess.check_call(['svn', 'co', self.svnPath, self.folder])# just download it