Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Use project root as cwd #8

Merged
merged 2 commits into from
Jul 29, 2014
Merged
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
3 changes: 3 additions & 0 deletions lib/linter-pylint.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class LinterPylint extends Linter
regexFlags: 'm'

constructor: (@editor) ->
super @editor # sets @cwd to the dirname of the current file
# if we're in a project, use that path instead
@cwd = atom.project.path ? @cwd
exec 'pylint --version', cwd: @cwd, @executionCheckHandler
console.log 'Linter-Pylint: initialization completed'

Expand Down