support new sip module location

qt has moved sip into a submodule
This commit is contained in:
Damien Elmes 2018-10-23 16:02:59 +10:00
parent f8e1ebd4fb
commit 5ecd01cc99

View file

@ -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