We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2c76b8 + 872e00e commit 0504a55Copy full SHA for 0504a55
typescript/libs/node_client.py
@@ -216,7 +216,7 @@ def which(program):
216
else:
217
# /usr/local/bin is not on mac default path
218
# but is where node is typically installed on mac
219
- path_list = os.environ["PATH"] + os.pathsep + "/usr/local/bin" + os.pathsep + "$NVM_BIN"
+ path_list = os.path.expandvars(os.environ["PATH"]) + os.pathsep + "/usr/local/bin" + os.pathsep + os.path.expandvars("$NVM_BIN")
220
for path in path_list.split(os.pathsep):
221
path = path.strip('"')
222
programPath = os.path.join(path, program)
0 commit comments