From 3f375beaf555ceba66b869089e1a56f11b12a217 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Thu, 24 Jul 2014 07:54:16 +0200 Subject: Fix FindPyQt.py sys.prefix should be used instead of sys.platform Forward port of kdelibs commit 8b1abe25dcf243cd2cdf23dff7272aca921292ae --- attic/modules/FindPyQt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'attic/modules/FindPyQt.py') 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): -- cgit v1.2.1