for module_name in PYQT_MODULES:
try:
// This is always the top-level "PyQt5" module.top_level_module_obj = __import__(PYQT_PACKAGE + "." + module_name)// Grab the module we are interested in from the top-level module
module_obj = top_level_module_obj.__dict__[module_name]
After Change
// self-compiled PyQt5 installations. Mandate the wheel layout. See// ``utils/hooks/qt.py`` for more details.
pyqt_path = os.path.join(sys._MEIPASS, "PyQt5", "Qt")
os.environ["QT_PLUGIN_PATH"] = os.path.join(pyqt_path, "plugins")
os.environ["QML2_IMPORT_PATH"] = os.path.join(pyqt_path, "qml")