mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow controlling PyQt5 import path via the env var PYQT5_IMPORT_PATH
This commit is contained in:
parent
1f3d25d934
commit
d18a999f31
@ -11,7 +11,7 @@ from distutils.spawn import find_executable
|
|||||||
|
|
||||||
# QT5XX: Remove this import once migration is complete, ensuring that sipconfig
|
# QT5XX: Remove this import once migration is complete, ensuring that sipconfig
|
||||||
# comes from PyQt5
|
# comes from PyQt5
|
||||||
sys.path.insert(0, '/opt/pyqt5/lib')
|
sys.path.insert(0, os.environ.get('PYQT5_IMPORT_PATH', '/opt/pyqt5/lib'))
|
||||||
|
|
||||||
import sipconfig
|
import sipconfig
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ __docformat__ = 'restructuredtext en'
|
|||||||
|
|
||||||
import sys, os, re, time, random, __builtin__, warnings
|
import sys, os, re, time, random, __builtin__, warnings
|
||||||
__builtin__.__dict__['dynamic_property'] = lambda func: func(None)
|
__builtin__.__dict__['dynamic_property'] = lambda func: func(None)
|
||||||
sys.path.insert(0, '/opt/pyqt5/lib') # QT5XX: Remove this after migration complete
|
sys.path.insert(0, os.environ.get('PYQT5_IMPORT_PATH', '/opt/pyqt5/lib')) # QT5XX: Remove this after migration complete
|
||||||
from math import floor
|
from math import floor
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user