I'm trying to checkout a project from my SVN-repository, using the script engine/python. When I check out a Project a second time, codesys asks me, if I want to overwrite the older Version. I want to prevent this and want to tell codesys to overwrite the project via python.
Does anybody know, how that works?
Regards
Elias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same problem. I don't know how to overwrite.. But I have an alternative: before checkout the new project --> delete the old project. I am using this code:
myfile = (ProjectPath+"/"+your.project)
if os.path.isfile(myfile):
os.remove(myfile)
else:
print("Your.project is not available")
And now checkout...
I hope thats a good help until a moderator help us.
BR
Chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2018-11-06
Originally created by: el_diep
ChrisI hat geschrieben:
Hey el_diep,
I have the same problem. I don't know how to overwrite.. But I have an alternative: before checkout the new project --> delete the old project. I am using this code:
myfile = (ProjectPath+"/"+your.project)
if os.path.isfile(myfile):
os.remove(myfile)
else:
print("Your.project is not available")
And now checkout...
I hope thats a good help until a moderator help us.
BR
Chris
Thanks Chris, that worked fine.
I hoped, that I didn't have to use such a solution. But temporary it's OK.
Perhaps a moderator might help us with another solution?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2018-11-09
Originally created by: el_diep
Another nearly similar problem:
When there are any problems loading a project, there are Popups, too. Are there any possibilities to prevent this.
Popups in an automation-environment of an IDE are self-defeating
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Originally created by: el_diep
Hey,
I'm trying to checkout a project from my SVN-repository, using the script engine/python. When I check out a Project a second time, codesys asks me, if I want to overwrite the older Version. I want to prevent this and want to tell codesys to overwrite the project via python.
Does anybody know, how that works?
Regards
Elias
Hey el_diep,
I have the same problem. I don't know how to overwrite.. But I have an alternative: before checkout the new project --> delete the old project. I am using this code:
myfile = (ProjectPath+"/"+your.project)
if os.path.isfile(myfile):
os.remove(myfile)
else:
print("Your.project is not available")
And now checkout...
I hope thats a good help until a moderator help us.
BR
Chris
Originally created by: el_diep
Thanks Chris, that worked fine.
I hoped, that I didn't have to use such a solution. But temporary it's OK.
Perhaps a moderator might help us with another solution?
Originally created by: el_diep
Another nearly similar problem:
When there are any problems loading a project, there are Popups, too. Are there any possibilities to prevent this.
Popups in an automation-environment of an IDE are self-defeating