1234567891011121314151617181920212223242526272829 |
- import os
- from PyInstaller.utils.hooks import get_module_file_attribute
- mfi = get_module_file_attribute('PyQt5')
- if mfi:
-
- hiddenimports = []
- for f in os.listdir(os.path.dirname(mfi)):
- root, ext = os.path.splitext(os.path.basename(f))
- if root.startswith('Qt') and root != 'Qt':
-
- if root.endswith('.abi3'):
- root = root[:-5]
- hiddenimports.append('PyQt5.' + root)
|