etherlab/etherlab.py
changeset 2363 9c7da6ff6a34
parent 2360 2a3d022a7dac
child 2364 4ea781f30555
equal deleted inserted replaced
2362:6d31ef14f396 2363:9c7da6ff6a34
   391     os.path.join(USERDATA_DIR, "ethercat_modules"))
   391     os.path.join(USERDATA_DIR, "ethercat_modules"))
   392 
   392 
   393 
   393 
   394 class RootClass:
   394 class RootClass:
   395 
   395 
   396     CTNChildrenTypes = [("EthercatNode",_EthercatCTN,"Ethercat Master")]
   396     CTNChildrenTypes = [("EthercatNode", _EthercatCTN, "Ethercat Master")]
   397     EditorType = LibraryEditor
   397     EditorType = LibraryEditor
   398 
   398 
   399 
   399 
   400     def __init__(self):
   400     def __init__(self):
   401         self.ModulesLibrary = None
   401         self.ModulesLibrary = None
   414             shutil.copytree(self.GetModulesLibraryPath(from_project_path),
   414             shutil.copytree(self.GetModulesLibraryPath(from_project_path),
   415                             self.GetModulesLibraryPath())
   415                             self.GetModulesLibraryPath())
   416         return True
   416         return True
   417 
   417 
   418     def CTNGenerate_C(self, buildpath, locations):
   418     def CTNGenerate_C(self, buildpath, locations):
   419         return [],"",False
   419         return [], "", False
   420 
   420 
   421     def LoadModulesLibrary(self):
   421     def LoadModulesLibrary(self):
   422         if self.ModulesLibrary is None:
   422         if self.ModulesLibrary is None:
   423             self.ModulesLibrary = ModulesLibrary(self.GetModulesLibraryPath(), ModulesDatabase)
   423             self.ModulesLibrary = ModulesLibrary(self.GetModulesLibraryPath(), ModulesDatabase)
   424         else:
   424         else: