sublime-closure-linter icon indicating copy to clipboard operation
sublime-closure-linter copied to clipboard

Python path setting

Open benhutchins opened this issue 11 years ago • 0 comments

On Windows platforms it cannot run a python script given as a quoted string (do not know why), so when setting the gjslint_path in the settings it attempts to run (example):

"D:\tools\3rdparty\google-closure\linter\gslint.py" "D:\projects\app\test.js"

This will not run, however if you have your PATH updated this will:

D:\tools\3rdparty\google-closure\linter\gslint.py "D:\projects\app\test.js"

However if you do not you need to specify to Python, which by default on Windows is something (depending on your version) like this:

C:\Python27\python.exe "D:\tools\3rdparty\google-closure\linter\gslint.py" "D:\projects\app\test.js"

I fixed this locally, but a setting should be made to allow you to specify the path for Python. I will create a workable patch later and submit a pull request.

benhutchins avatar Apr 29 '13 20:04 benhutchins