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): |