Fixed the algorithm searching for the right pylint executable for the Mac platform.

Mon, 21 Nov 2011 19:24:41 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 21 Nov 2011 19:24:41 +0100
changeset 3
78fc974034dc
parent 2
7c4b0f3616b7
child 4
2285b6fbf267

Fixed the algorithm searching for the right pylint executable for the Mac platform.

PluginPyLint.py file | annotate | diff | comparison | revisions
PluginPyLint.zip file | annotate | diff | comparison | revisions
--- a/PluginPyLint.py	Fri Jul 29 19:26:37 2011 +0200
+++ b/PluginPyLint.py	Mon Nov 21 19:24:41 2011 +0100
@@ -130,11 +130,15 @@
         
         # step 2: determine the Python 3 variant
         found = False
+        if Utilities.isMacPlatform():
+            checkStr = "Python.framework/Versions/3".lower()
+        else:
+            checkStr = "python3"
         for exe in exes:
             try:
                 f = open(exe, "r")
                 line0 = f.readline()
-                if "python3" in line0.lower():
+                if checkStr in line0.lower():
                     found = True
             finally:
                 f.close()
Binary file PluginPyLint.zip has changed

eric ide

mercurial