bootstrap.py: use importlib to generically support all bindings
This commit is contained in:
parent
71e1ea34fd
commit
44da583511
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user