mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Redirect PyQt5 imports to PyQt6
This commit is contained in:
parent
f56d0b5ec0
commit
1dddbe95e6
@ -203,6 +203,9 @@ class DeVendor:
|
||||
return find_spec('feedparser')
|
||||
if fullname.startswith('calibre.ebooks.markdown'):
|
||||
return ModuleSpec(fullname, DeVendorLoader(fullname[len('calibre.ebooks.'):]))
|
||||
if fullname.startswith('PyQt5.'):
|
||||
# this is present for third party plugin compat
|
||||
return ModuleSpec(fullname, DeVendorLoader('qt.webengine' if 'QWebEngine' in fullname else 'qt.core'))
|
||||
|
||||
|
||||
class ExtensionsPackageLoader:
|
||||
|
Loading…
x
Reference in New Issue
Block a user