diff easyhg.py @ 369:19cce6d2c470

Look in installation path + Python version suffix for PyQt before looking in plain installation path
author Chris Cannam
date Thu, 24 Mar 2011 10:20:47 +0000
parents ea6f76c0aa76
children 2d3f1e5d8638
line wrap: on
line diff
--- a/easyhg.py	Wed Mar 23 14:50:20 2011 +0000
+++ b/easyhg.py	Thu Mar 24 10:20:47 2011 +0000
@@ -24,6 +24,10 @@
 #
 easyhg_import_path = 'NO_EASYHG_IMPORT_PATH'
 if not easyhg_import_path.startswith('NO_'):
+    # We have an installation path: append it twice, once with
+    # the Python version suffixed
+    version_suffix = "Py" + sys.version_info[0] + "." + sys.version_info[1];
+    sys.path.append(easyhg_import_path + version_suffix)
     sys.path.append(easyhg_import_path)
 
 # Try to load the PyQt4 module that we need.  If this fails, we should