Skip to content
This repository was archived by the owner on Nov 4, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions pylinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import collections
import sublime
import sublime_plugin
import distutils.spawn

#pylint: disable=E1101

Expand Down Expand Up @@ -179,14 +180,9 @@ def get_default_pylint_command(cls):
python_bin = cls.get_or('python_bin', 'python')
pylint_path = cls.get_or('pylint_path', None)
if pylint_path is None:
_ = subprocess.Popen("pylint",
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
startupinfo=STARTUPINFO)
speak("Pylint executable found")
return ["pylint"]
else:
return [python_bin, pylint_path]
pylint_path = distutils.spawn.find_executable("pylint")
speak("Pylint executable found at '%s'." % pylint_path)
return [python_bin, pylint_path]
except OSError:
speak("Pylint executable *not* found")
speak("Seaching for lint.py module...")
Expand Down