Skip to content

Commit a659034

Browse files
committed
Issue 174 - fix tern_command variable
1 parent bd68869 commit a659034

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tern.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,17 @@ def server_port(project, ignored=None):
168168
return (started, False)
169169

170170
def start_server(project):
171+
global tern_command
171172
if not tern_command: return None
172173
if time.time() - project.last_failed < 30: return None
173174
env = None
174175
if platform.system() == "Darwin":
175176
env = os.environ.copy()
176177
env["PATH"] += ":/usr/local/bin"
177-
178+
178179
if not isinstance(tern_command, list):
179180
tern_command = [tern_command]
180-
181+
181182
proc = subprocess.Popen(tern_command + tern_arguments, cwd=project.dir, env=env,
182183
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
183184
stderr=subprocess.STDOUT, shell=windows)

0 commit comments

Comments
 (0)