CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sun Dec 16, 2018 6:10 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Nov 01, 2018 7:50 am 
Offline

Joined: Thu Oct 18, 2018 10:46 am
Posts: 4
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


Top
   
PostPosted: Fri Nov 02, 2018 1:08 pm 
Offline

Joined: Wed Sep 12, 2018 2:39 pm
Posts: 6
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


Top
   
PostPosted: Tue Nov 06, 2018 3:19 pm 
Offline

Joined: Thu Oct 18, 2018 10:46 am
Posts: 4
ChrisI wrote:
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? :?


Top
   
PostPosted: Fri Nov 09, 2018 9:40 am 
Offline

Joined: Thu Oct 18, 2018 10:46 am
Posts: 4
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 :?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited