Skip to content

Commit 015c62c

Browse files
committed
fix(vscode): include process path env variable in passed path
1 parent 977ead3 commit 015c62c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

vscode/extension/src/utilities/sqlmesh/sqlmesh.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const getTcloudBin = async (): Promise<Result<SqlmeshExecInfo, ErrorType>
8383
...envVariables.value,
8484
PYTHONPATH: interpreterDetails.path[0],
8585
VIRTUAL_ENV: path.dirname(interpreterDetails.binPath!),
86-
PATH: interpreterDetails.binPath!,
86+
PATH: `${interpreterDetails.binPath!}${path.delimiter}${process.env.PATH || ''}`,
8787
},
8888
args: [],
8989
})
@@ -308,7 +308,7 @@ export const sqlmeshExec = async (): Promise<
308308
...envVariables.value,
309309
PYTHONPATH: interpreterDetails.path?.[0],
310310
VIRTUAL_ENV: path.dirname(path.dirname(interpreterDetails.binPath!)), // binPath now points to bin dir
311-
PATH: interpreterDetails.binPath!,
311+
PATH: `${interpreterDetails.binPath!}${path.delimiter}${process.env.PATH || ''}`,
312312
},
313313
args: [],
314314
})
@@ -461,7 +461,7 @@ export const sqlmeshLspExec = async (): Promise<
461461
env: {
462462
PYTHONPATH: interpreterDetails.path?.[0],
463463
VIRTUAL_ENV: path.dirname(path.dirname(interpreterDetails.binPath!)), // binPath now points to bin dir
464-
PATH: interpreterDetails.binPath!, // binPath already points to the bin directory
464+
PATH: `${interpreterDetails.binPath!}${path.delimiter}${process.env.PATH || ''}`, // binPath already points to the bin directory
465465
...process.env,
466466
...envVariables.value,
467467
},

0 commit comments

Comments
 (0)