Skip to content

Instantly share code, notes, and snippets.

@dobo90
Created September 8, 2013 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dobo90/6487800 to your computer and use it in GitHub Desktop.
Save dobo90/6487800 to your computer and use it in GitHub Desktop.
spyder 2.2.4 patch for python2-pylint
diff -rupN spyder-2.2.4/spyderplugins/widgets/pylintgui.py spyder-2.2.4-patched/spyderplugins/widgets/pylintgui.py
--- spyder-2.2.4/spyderplugins/widgets/pylintgui.py 2013-09-04 21:04:18.000000000 +0200
+++ spyder-2.2.4-patched/spyderplugins/widgets/pylintgui.py 2013-09-08 21:32:02.000000000 +0200
@@ -40,7 +40,7 @@ from spyderlib.widgets.comboboxes import
_ = get_translation("p_pylint", dirname="spyderplugins")
-PYLINT_PATH = programs.find_program('pylint')
+PYLINT_PATH = programs.find_program('pylint2')
def get_pylint_version():
@@ -53,8 +53,8 @@ def get_pylint_version():
pylint_exe_name = 'pylint-script.py'
else:
shell = False
- pylint_exe_name = 'pylint'
- process = subprocess.Popen(['pylint', '--version'],
+ pylint_exe_name = 'pylint2'
+ process = subprocess.Popen(['pylint2', '--version'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
cwd=osp.dirname(PYLINT_PATH), shell=shell)
lines = to_unicode_from_fs(process.stdout.read()).splitlines()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment