--- a/PluginCxFreeze.py Mon Dec 26 19:35:18 2011 +0100 +++ b/PluginCxFreeze.py Fri May 18 16:03:58 2012 +0200 @@ -26,7 +26,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "5.0.6" +version = "5.0.7" className = "CxFreezePlugin" packageName = "CxFreeze" shortDescription = "Show the CxFreeze dialogs." @@ -110,6 +110,9 @@ # # Linux, Unix ... cxfreezeScript = 'cxfreeze' + scriptSuffixes = ["", + "-python{0}".format(sys.version[:1]), + "-python{0}".format(sys.version[:3])] # There could be multiple cxfreeze executables in the path # e.g. for different python variants path = Utilities.getEnvironmentEntry('PATH') @@ -121,9 +124,10 @@ exes = [] dirs = path.split(os.pathsep) for dir in dirs: - exe = os.path.join(dir, cxfreezeScript) - if os.access(exe, os.X_OK): - exes.append(exe) + for suffix in scriptSuffixes: + exe = os.path.join(dir, cxfreezeScript + suffix) + if os.access(exe, os.X_OK): + exes.append(exe) # step 2: determine the Python 3 variant found = False