Mercurial > hg > easyhg
changeset 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 | d180d8719933 |
children | b9c153e00e84 |
files | easyhg.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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