PluginPyLint.py

changeset 48
69c4c0e04bf6
parent 46
a781953e3703
child 50
beb6e8b9504f
equal deleted inserted replaced
47:0a7f95dd67d1 48:69c4c0e04bf6
33 # Start-of-Header 33 # Start-of-Header
34 name = "PyLint Plugin" 34 name = "PyLint Plugin"
35 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 35 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
36 autoactivate = True 36 autoactivate = True
37 deactivateable = True 37 deactivateable = True
38 version = "6.1.0" 38 version = "6.1.1"
39 className = "PyLintPlugin" 39 className = "PyLintPlugin"
40 packageName = "PyLint" 40 packageName = "PyLint"
41 shortDescription = "Show the PyLint dialogs." 41 shortDescription = "Show the PyLint dialogs."
42 longDescription = """This plug-in implements the PyLint dialogs.""" \ 42 longDescription = """This plug-in implements the PyLint dialogs.""" \
43 """ PyLint is used to check Python source files according to various""" \ 43 """ PyLint is used to check Python source files according to various""" \
148 exes.append(exe) 148 exes.append(exe)
149 # Look for the executable variant 149 # Look for the executable variant
150 exe = os.path.join(installpath, 'Scripts', 'pylint.exe') 150 exe = os.path.join(installpath, 'Scripts', 'pylint.exe')
151 if os.access(exe, os.X_OK): 151 if os.access(exe, os.X_OK):
152 exes.append(exe) 152 exes.append(exe)
153 except (WindowsError, FileNotFoundError): # __IGNORE_WARNING__ 153 except (WindowsError, OSError): # __IGNORE_WARNING__
154 pass 154 pass
155 return exes 155 return exes
156 156
157 for minorVersion in minorVersions: 157 for minorVersion in minorVersions:
158 versionStr = '{0}.{1}'.format(majorVersion, minorVersion) 158 versionStr = '{0}.{1}'.format(majorVersion, minorVersion)

eric ide

mercurial