Skip to content

Commit

Permalink
Include sublime path in command runs
Browse files Browse the repository at this point in the history
  • Loading branch information
cdloh committed Nov 18, 2016
1 parent ca05d05 commit ac0d7a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CoffeeScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
import os
from os import path
from os import environ
from subprocess import Popen, PIPE
from sublime_plugin import TextCommand
from sublime_plugin import WindowCommand
Expand Down Expand Up @@ -61,7 +62,8 @@ def _run(cmd, args=[], source="", cwd=None, env=None):
return {"okay": okay, "out": stat[0].decode(locale.getdefaultlocale()[1]), "err": stat[1].decode(locale.getdefaultlocale()[1])}
else:
if env is None:
env = {"PATH": settings_get('binDir', '/usr/local/bin')}
env = {"PATH": environ["PATH"]}
env["PATH"] = settings_get('binDir', '/usr/local/bin')+":"+env["PATH"]

# adding custom PATHs from settings
customEnv = settings_get('envPATH', "")
Expand Down

0 comments on commit ac0d7a3

Please sign in to comment.