mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
support new sip module location
qt has moved sip into a submodule
This commit is contained in:
parent
f8e1ebd4fb
commit
5ecd01cc99
1 changed files with 4 additions and 1 deletions
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
# fixme: make sure not to optimize imports on this file
|
# fixme: make sure not to optimize imports on this file
|
||||||
|
|
||||||
import sip
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# fix buggy ubuntu12.04 display of language selector
|
# fix buggy ubuntu12.04 display of language selector
|
||||||
|
@ -15,6 +14,10 @@ from PyQt5.Qt import *
|
||||||
# trigger explicit message in case of missing libraries
|
# trigger explicit message in case of missing libraries
|
||||||
# instead of silently failing to import
|
# instead of silently failing to import
|
||||||
from PyQt5.QtWebEngineWidgets import QWebEnginePage
|
from PyQt5.QtWebEngineWidgets import QWebEnginePage
|
||||||
|
try:
|
||||||
|
from PyQt5 import sip
|
||||||
|
except ImportError:
|
||||||
|
import sip
|
||||||
|
|
||||||
def debug():
|
def debug():
|
||||||
from PyQt5.QtCore import pyqtRemoveInputHook
|
from PyQt5.QtCore import pyqtRemoveInputHook
|
||||||
|
|
Loading…
Reference in a new issue