From ae8b73dcfccaa375eb7ac84d08335a07cec46e7c Mon Sep 17 00:00:00 2001 From: Florian Kaiser Date: Sat, 11 Oct 2014 01:14:12 +0200 Subject: [PATCH] fix #13 --- lib/linter-pylint.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linter-pylint.coffee b/lib/linter-pylint.coffee index 842d066..69e6e4b 100644 --- a/lib/linter-pylint.coffee +++ b/lib/linter-pylint.coffee @@ -28,14 +28,14 @@ class LinterPylint extends Linter # Private: handles the initial 'version' call, extracts the version and # enables the linter executionCheckHandler: (error, stdout, stderr) => - versionRegEx = /pylint ([\d\.]+)\,/ + versionRegEx = /pylint(-script.py)? ([\d\.]+)\,/ if not versionRegEx.test(stdout) result = if error? then '#' + error.code + ': ' else '' result += 'stdout: ' + stdout if stdout.length > 0 result += 'stderr: ' + stderr if stderr.length > 0 console.error "Linter-Pylint: 'pylint' was not executable: " + result else - log "Linter-Pylint: found pylint " + versionRegEx.exec(stdout)[1] + log "Linter-Pylint: found pylint " + versionRegEx.exec(stdout).slice(-1)[0] @enabled = true # everything is fine, the linter is ready to work lintFile: (filePath, callback) =>