lpcmanager

cdc52d6b1a6e
Use beremiz normal NewProject method when creating project,
thus avoiding missing half of the preparation of the CTR.
--- a/LPCProjectController.py Wed Feb 14 14:46:13 2018 +0100
+++ b/LPCProjectController.py Wed Feb 14 14:47:15 2018 +0100
@@ -124,14 +124,9 @@
"""
plc_file = os.path.join(ProjectPath, "plc.xml")
if not os.path.isfile(plc_file):
- self.CreateNewProject({"companyName": "",
- "productName": "",
- "productVersion": "",
- "projectName": "",
- "pageSize": (0, 0),
- "scaling": {}})
-
- ProjectController.LoadProject(self, ProjectPath, BuildPath=None)
+ self.NewProject(ProjectPath, BuildPath)
+ else :
+ ProjectController.LoadProject(self, ProjectPath, BuildPath)
canopen_child = self.GetChildByName("CanOpen")
if canopen_child is None: