diff --git a/pyqtgraph/multiprocess/bootstrap.py b/pyqtgraph/multiprocess/bootstrap.py index d31a1ca6..a20c3e20 100644 --- a/pyqtgraph/multiprocess/bootstrap.py +++ b/pyqtgraph/multiprocess/bootstrap.py @@ -1,5 +1,6 @@ """For starting up remote processes""" import sys, pickle, os +import importlib if __name__ == '__main__': if hasattr(os, 'setpgrp'): @@ -33,12 +34,8 @@ if __name__ == '__main__': sip.setapi(k, v) qt_lib = opts.pop('qt_lib', None) - if qt_lib == 'PySide': - import PySide - elif qt_lib == 'PySide2': - import PySide2 - elif qt_lib == 'PyQt5': - import PyQt5 + if qt_lib is not None: + globals()[qt_lib] = importlib.import_module(qt_lib) targetStr = opts.pop('targetStr') try: