mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 12:15:34 +01:00
...
This commit is contained in:
parent
eaea8cc057
commit
c252e3e72f
2 changed files with 2 additions and 2 deletions
|
|
@ -1,10 +1,10 @@
|
|||
# autogenerated by __main__.py do not edit
|
||||
top_level_module_names=('QtCore', 'QtGui', 'QtWidgets', 'QtNetwork', 'QtSvg', 'QtPrintSupport', 'QtWebEngineCore', 'QtWebEngineWidgets')
|
||||
|
||||
|
||||
def __getattr__(name):
|
||||
if name in top_level_module_names:
|
||||
import importlib
|
||||
return importlib.import_module("PyQt6." + name)
|
||||
raise AttributeError(name)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -61,10 +61,10 @@ def scan(name):
|
|||
print('# autogenerated by __main__.py do not edit', file=f)
|
||||
print(f'{top_level_module_names=}', file=f)
|
||||
print(f'''
|
||||
|
||||
def __getattr__(name):
|
||||
if name in top_level_module_names:
|
||||
import importlib
|
||||
return importlib.import_module("{QT_WRAPPER}." + name)
|
||||
raise AttributeError(name)
|
||||
|
||||
''', file=f)
|
||||
|
|
|
|||
Loading…
Reference in a new issue