PluginCxFreeze.py

changeset 41
394efa0e059c
parent 37
94949c60ef54
child 43
122dd6b685f7
--- a/PluginCxFreeze.py	Sat Feb 23 15:15:15 2013 +0100
+++ b/PluginCxFreeze.py	Sun Apr 28 18:03:38 2013 +0200
@@ -23,7 +23,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "5.1.0"
+version = "5.1.1"
 className = "CxFreezePlugin"
 packageName = "CxFreeze"
 shortDescription = "Show the CxFreeze dialogs."
@@ -129,15 +129,18 @@
         # step 2: determine the Python 3 variant
         found = False
         if Utilities.isMacPlatform():
-            checkStr = "Python.framework/Versions/3".lower()
+            checkStrings = ["Python.framework/Versions/3".lower(),
+                            "python3"]
         else:
-            checkStr = "python3"
+            checkStrings = ["python3"]
         for exe in exes:
             try:
                 f = open(exe, "r")
                 line0 = f.readline()
-                if checkStr in line0.lower():
-                    found = True
+                for checkStr in checkStrings:
+                    if checkStr in line0.lower():
+                        found = True
+                        break
             finally:
                 f.close()
             if found:

eric ide

mercurial