Kronuz/SublimeLinter — Issue #103: Set cwd before running lint
Author: ewildgoose
Created: 2012-02-23 10:41:02+00:00
State: open

Please consider setting current working directory to match that of the script (or project) before running the lint.

With perl at least its reasonably common to reference resources relative to the script, eg USE relative files, etc. Whilst it might be helpful to use absolute file paths in many circumstances, there are uses for relative paths

In particular I'm currently struggling with using orlite which is an ORM that generates a database at *compile* time if it's missing. SublimeLinter keeps triggering junk databases to be generated in the root of my OSX main drive...

My proposal would be to set cwd to that of the script before running "perl -c". Alternatively if there is some strong concept of the "project root", then lets use that?

Thanks