mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
a78d3cd611
commit
b1c0ca7b6e
@ -1,10 +1,10 @@
|
|||||||
# autogenerated by __main__.py do not edit
|
# autogenerated by __main__.py do not edit
|
||||||
top_level_module_names=('QtCore', 'QtGui', 'QtWidgets', 'QtNetwork', 'QtSvg', 'QtPrintSupport', 'QtWebEngineCore', 'QtWebEngineWidgets')
|
top_level_module_names=('QtCore', 'QtGui', 'QtWidgets', 'QtNetwork', 'QtSvg', 'QtPrintSupport', 'QtWebEngineCore', 'QtWebEngineWidgets')
|
||||||
|
|
||||||
|
|
||||||
def __getattr__(name):
|
def __getattr__(name):
|
||||||
if name in top_level_module_names:
|
if name in top_level_module_names:
|
||||||
import importlib
|
import importlib
|
||||||
return importlib.import_module("PyQt6." + name)
|
return importlib.import_module("PyQt6." + name)
|
||||||
raise AttributeError(name)
|
raise AttributeError(name)
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,10 +61,10 @@ with open(f'{base}/__init__.py', 'w') as f:
|
|||||||
print('# autogenerated by __main__.py do not edit', file=f)
|
print('# autogenerated by __main__.py do not edit', file=f)
|
||||||
print(f'{top_level_module_names=}', file=f)
|
print(f'{top_level_module_names=}', file=f)
|
||||||
print(f'''
|
print(f'''
|
||||||
|
|
||||||
def __getattr__(name):
|
def __getattr__(name):
|
||||||
if name in top_level_module_names:
|
if name in top_level_module_names:
|
||||||
import importlib
|
import importlib
|
||||||
return importlib.import_module("{QT_WRAPPER}." + name)
|
return importlib.import_module("{QT_WRAPPER}." + name)
|
||||||
raise AttributeError(name)
|
raise AttributeError(name)
|
||||||
|
|
||||||
''', file=f)
|
''', file=f)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user