Allow controlling PyQt5 import path via the env var PYQT5_IMPORT_PATH

This commit is contained in:
Kovid Goyal 2014-04-11 18:46:01 +05:30
parent 1f3d25d934
commit d18a999f31
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ from distutils.spawn import find_executable
# QT5XX: Remove this import once migration is complete, ensuring that sipconfig
# 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

View File

@ -5,7 +5,7 @@ __docformat__ = 'restructuredtext en'
import sys, os, re, time, random, __builtin__, warnings
__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 functools import partial