Skip to content

Commit bd68869

Browse files
f213marijnh
authored andcommitted
Fixed app running
I don't know how it managed to work before, because on my system i always have `tern_command` as a string, that may not be concatenated with a list.
1 parent 711fdb9 commit bd68869

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tern.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ def start_server(project):
174174
if platform.system() == "Darwin":
175175
env = os.environ.copy()
176176
env["PATH"] += ":/usr/local/bin"
177+
178+
if not isinstance(tern_command, list):
179+
tern_command = [tern_command]
180+
177181
proc = subprocess.Popen(tern_command + tern_arguments, cwd=project.dir, env=env,
178182
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
179183
stderr=subprocess.STDOUT, shell=windows)

0 commit comments

Comments
 (0)