1 import { CommandWithResult } from "./command.mjs";
2 import { workspace } from "vscode";
3 import { getPythonPath, getPath } from "../utils/cmakeUtil.mjs";
5 export class GetPythonPathCommand
6 extends CommandWithResult<string> {
8 super("getPythonPath");
11 async execute(): Promise<string> {
13 workspace.workspaceFolders === undefined ||
14 workspace.workspaceFolders.length === 0
19 const pythonPath = await getPythonPath();
25 export class GetEnvPathCommand
26 extends CommandWithResult<string> {
31 async execute(): Promise<string> {
33 workspace.workspaceFolders === undefined ||
34 workspace.workspaceFolders.length === 0
39 const path = await getPath();