aboutsummaryrefslogtreecommitdiff
path: root/attic
diff options
context:
space:
mode:
authorLuca Beltrame <lbeltrame@kde.org>2014-07-24 07:54:16 +0200
committerLuca Beltrame <lbeltrame@kde.org>2014-07-24 07:54:16 +0200
commit3f375beaf555ceba66b869089e1a56f11b12a217 (patch)
treea7b9e890367e485ed74f37bc2720a964e4fb8434 /attic
parentd1ec7e299eab601e2127719d972f689d76185319 (diff)
downloadextra-cmake-modules-3f375beaf555ceba66b869089e1a56f11b12a217.tar.gz
extra-cmake-modules-3f375beaf555ceba66b869089e1a56f11b12a217.tar.bz2
Fix FindPyQt.py
sys.prefix should be used instead of sys.platform Forward port of kdelibs commit 8b1abe25dcf243cd2cdf23dff7272aca921292ae
Diffstat (limited to 'attic')
-rw-r--r--attic/modules/FindPyQt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/attic/modules/FindPyQt.py b/attic/modules/FindPyQt.py
index fa5618d0..6c1c759d 100644
--- a/attic/modules/FindPyQt.py
+++ b/attic/modules/FindPyQt.py
@@ -12,9 +12,9 @@ def get_default_sip_dir():
# default case where installation paths have not been changed in PyQt's
# configuration process.
if sys.platform == 'win32':
- pyqt_sip_dir = os.path.join(sys.platform, 'sip', 'PyQt4')
+ pyqt_sip_dir = os.path.join(sys.prefix, 'sip', 'PyQt4')
else:
- pyqt_sip_dir = os.path.join(sys.platform, 'share', 'sip', 'PyQt4')
+ pyqt_sip_dir = os.path.join(sys.prefix, 'share', 'sip', 'PyQt4')
return pyqt_sip_dir
def get_qt4_tag(sip_flags):