ProjectController.py
changeset 2462 ed6b0e905fcb
parent 2459 21164625b393
child 2463 8742337a9fe3
equal deleted inserted replaced
2461:9624575a9cac 2462:ed6b0e905fcb
   277         self.KillDebugThread()
   277         self.KillDebugThread()
   278 
   278 
   279     def LoadLibraries(self):
   279     def LoadLibraries(self):
   280         self.Libraries = []
   280         self.Libraries = []
   281         TypeStack = []
   281         TypeStack = []
   282         for libname, clsname, _default in features.libraries:
   282         for libname, clsname, lib_enabled in features.libraries:
   283             if self.BeremizRoot.Libraries is not None and \
   283             if self.BeremizRoot.Libraries is not None:
   284                getattr(self.BeremizRoot.Libraries,
   284                 enable_attr = getattr(self.BeremizRoot.Libraries,
   285                        "Enable_" + libname + "_Library"):
   285                                       "Enable_" + libname + "_Library")
       
   286                 if enable_attr is not None:
       
   287                     lib_enabled = enable_attr
       
   288 
       
   289             if lib_enabled:
   286                 Lib = GetClassImporter(clsname)()(self, libname, TypeStack)
   290                 Lib = GetClassImporter(clsname)()(self, libname, TypeStack)
   287                 TypeStack.append(Lib.GetTypes())
   291                 TypeStack.append(Lib.GetTypes())
   288                 self.Libraries.append(Lib)
   292                 self.Libraries.append(Lib)
   289 
   293 
   290     def SetAppFrame(self, frame, logger):
   294     def SetAppFrame(self, frame, logger):