From faca0b48002bf41f382e257877406550f807a6ba Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Sun, 29 Sep 2024 18:00:56 -0700 Subject: [PATCH] Use shell script for launching tools (#690) --- vscode-wpilib/src/builtintools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vscode-wpilib/src/builtintools.ts b/vscode-wpilib/src/builtintools.ts index e60450c3..75e1c81b 100644 --- a/vscode-wpilib/src/builtintools.ts +++ b/vscode-wpilib/src/builtintools.ts @@ -29,7 +29,7 @@ class VbsToolRunner implements IToolRunner { public async runTool(): Promise { const wp = await this.preferences.getFirstOrSelectedWorkspace(); return new Promise((resolve, _reject) => { - let cmd = getIsWindows() ? `wscript.exe ${this.toolScript}` : `python3 ${this.toolScript}`; + let cmd = getIsWindows() ? `wscript.exe ${this.toolScript}` : `sh ${this.toolScript}`; if (wp !== undefined) { const toolStoreFolder = path.join(wp.uri.fsPath, `.${this.name}`); @@ -67,7 +67,7 @@ export class BuiltinTools { toolApi.addTool(new VbsToolRunner(toolPath, ht.name, api.getPreferencesAPI())); } } else { - const toolPath = path.join(homeTools.dir, ht.name + '.py'); + const toolPath = path.join(homeTools.dir, ht.name + '.sh'); if (await existsAsync(toolPath)) { // Tool exists, add it toolApi.addTool(new VbsToolRunner(toolPath, ht.name, api.getPreferencesAPI()));