Skip to content

Commit

Permalink
Merge pull request #352 from GordonSmith/GH-351
Browse files Browse the repository at this point in the history
fix:  Clienttools terminal will fail on *nix platforms
  • Loading branch information
GordonSmith authored Aug 24, 2023
2 parents 51e511e + f1e0a7a commit 6fa41a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ecl/terminal.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { ClientTools } from "@hpcc-js/comms";
import * as vscode from "vscode";
import * as os from "os";
import { sessionManager } from "../hpccplatform/session";

const PATH_SEP = os.platform() === "win32" ? ";" : ":";

export function eclTerminal(ct: ClientTools) {
const ver = ct.versionSync();
const terminal = vscode.window.createTerminal({
name: `ECL v${ver.major}.${ver.minor}.${ver.patch}`,
env: {
PATH: `${ct.binPath};${process.env.PATH}`
PATH: `${ct.binPath}${PATH_SEP}${process.env.PATH}`
}
});
terminal.show();
Expand Down

0 comments on commit 6fa41a2

Please sign in to comment.