--- a/PluginCxFreeze.py Tue Aug 20 13:15:26 2013 +0200 +++ b/PluginCxFreeze.py Tue Aug 20 13:22:42 2013 +0200 @@ -46,6 +46,7 @@ exePy2 = [] exePy3 = [] + def exeDisplayDataList(): """ Public method to support the display of some executable info. @@ -66,7 +67,7 @@ } if _checkProgram(): - for exePath in (exePy2+exePy3): + for exePath in (exePy2 + exePy3): data["exe"] = exePath data["versionStartsWith"] = "cxfreeze" dataList.append(data.copy()) @@ -74,6 +75,7 @@ dataList.append(data) return dataList + def _findExecutable(majorVersion): """ Restricted function to determine the names of the executable. @@ -191,6 +193,7 @@ executables.sort(reverse=True) return executables + def _checkProgram(): """ Restricted function to check the availability of cxfreeze. @@ -201,7 +204,7 @@ exePy2 = _findExecutable(2) exePy3 = _findExecutable(3) - if (exePy2+exePy3) == []: + if (exePy2 + exePy3) == []: error = QCoreApplication.translate("CxFreezePlugin", "The cxfreeze executable could not be found.") return False