diff -r cda98d0e93e7 -r b126b60ac32a PluginPyLint.py --- a/PluginPyLint.py Sat Apr 14 14:42:31 2012 +0200 +++ b/PluginPyLint.py Fri May 18 16:00:19 2012 +0200 @@ -28,7 +28,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "5.0.1" +version = "5.0.2" className = "PyLintPlugin" packageName = "PyLint" shortDescription = "Show the PyLint dialogs." @@ -113,6 +113,9 @@ # # Linux, Unix ... pylintScript = 'pylint' + scriptSuffixes = ["", + "-python{0}".format(sys.version[:1]), + "-python{0}".format(sys.version[:3])] # There could be multiple pylint executables in the path # e.g. for different python variants path = Utilities.getEnvironmentEntry('PATH') @@ -124,9 +127,10 @@ exes = [] dirs = path.split(os.pathsep) for dir in dirs: - exe = os.path.join(dir, pylintScript) - if os.access(exe, os.X_OK): - exes.append(exe) + for suffix in scriptSuffixes: + exe = os.path.join(dir, pylintScript + suffix) + if os.access(exe, os.X_OK): + exes.append(exe) # step 2: determine the Python 3 variant found = False