# HG changeset patch # User Chris Cannam # Date 1300962047 0 # Node ID 19cce6d2c4701eafcd2982d05342154af60fda40 # Parent d180d871993374ad71f97ae06562949b80057e47 Look in installation path + Python version suffix for PyQt before looking in plain installation path diff -r d180d8719933 -r 19cce6d2c470 easyhg.py --- 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