We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61b25c6 commit 0037d8dCopy full SHA for 0037d8d
1 file changed
lib/python/qtvcp/qt_pstat.py
@@ -419,3 +419,14 @@ def find_vismach_files(self):
419
tmp.append(file)
420
421
return tmp
422
+
423
+ # tempararily adds the screen directory to path
424
+ # so the handler can be imported to be used for subclassing
425
+ def importDefaultHandler(self, module=None):
426
+ import importlib
427
+ sys.path.insert(0, self.SCREENDIR)
428
+ if module is None:
429
+ module = "{}.{}_handler".format(self.BASEPATH,self.BASEPATH)
430
+ mod = importlib.import_module(module, self.SCREENDIR)
431
+ sys.path.remove(self.SCREENDIR)
432
+ return mod.HandlerClass
0 commit comments