mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix aliasing of PyQt5 imports
This commit is contained in:
parent
0bad6416a8
commit
c283f85d73
@ -203,8 +203,10 @@ class DeVendor:
|
||||
return find_spec('feedparser')
|
||||
if fullname.startswith('calibre.ebooks.markdown'):
|
||||
return ModuleSpec(fullname, DeVendorLoader(fullname[len('calibre.ebooks.'):]))
|
||||
if fullname.startswith('PyQt5.'):
|
||||
if fullname.startswith('PyQt5'):
|
||||
# this is present for third party plugin compat
|
||||
if fullname == 'PyQt5':
|
||||
return ModuleSpec(fullname, DeVendorLoader('qt'))
|
||||
return ModuleSpec(fullname, DeVendorLoader('qt.webengine' if 'QWebEngine' in fullname else 'qt.core'))
|
||||
if fullname.startswith('Cryptodome'):
|
||||
# this is needed for py7zr which uses pycryptodomex instead of
|
||||
|
Loading…
x
Reference in New Issue
Block a user