Skip to content

Commit 0504a55

Browse files
committed
Merge pull request #426 from zhengbli/i235
Expand $NVM_BIN
2 parents d2c76b8 + 872e00e commit 0504a55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/libs/node_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def which(program):
216216
else:
217217
# /usr/local/bin is not on mac default path
218218
# but is where node is typically installed on mac
219-
path_list = os.environ["PATH"] + os.pathsep + "/usr/local/bin" + os.pathsep + "$NVM_BIN"
219+
path_list = os.path.expandvars(os.environ["PATH"]) + os.pathsep + "/usr/local/bin" + os.pathsep + os.path.expandvars("$NVM_BIN")
220220
for path in path_list.split(os.pathsep):
221221
path = path.strip('"')
222222
programPath = os.path.join(path, program)

0 commit comments

Comments
 (0)