Skip to content

Commit

Permalink
Use shell script for launching tools (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz authored Sep 30, 2024
1 parent b4241fc commit faca0b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vscode-wpilib/src/builtintools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class VbsToolRunner implements IToolRunner {
public async runTool(): Promise<boolean> {
const wp = await this.preferences.getFirstOrSelectedWorkspace();
return new Promise<boolean>((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}`);
Expand Down Expand Up @@ -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()));
Expand Down

0 comments on commit faca0b4

Please sign in to comment.