Skip to content

Commit b7a877b

Browse files
committed
Update pyright-bridge.ts to spawn Pyright using process.execPath for better compatibility across environments.
1 parent dec3a6a commit b7a877b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyright-bridge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function startPyrightBridge() {
8585
// Set cwd to the project root so Pyright can find pyrightconfig.json and .venv
8686
console.log(`Spawning Pyright with cwd: ${BOT_ROOT}`)
8787

88-
const pyright = spawn('node', [PYRIGHT_PATH, '--stdio'], {
88+
const pyright = spawn(process.execPath, [PYRIGHT_PATH, '--stdio'], {
8989
cwd: BOT_ROOT,
9090
env: process.env
9191
})

0 commit comments

Comments
 (0)