updated tests and methods

This commit is contained in:
redanthrax 2022-06-23 16:04:48 -07:00
parent de8e795254
commit da1e250ce9
8 changed files with 94 additions and 40 deletions

View file

@ -7,7 +7,6 @@ import (
"bufio"
"fmt"
"os"
"path/filepath"
"runtime"
"strings"
"syscall"
@ -287,21 +286,4 @@ func CMDShell(shell string, cmdArgs []string, command string, timeout int, detac
func CMD(exe string, args []string, timeout int, detached bool) (output [2]string, e error) {
return [2]string{"", ""}, nil
}
func GetPythonBin() string {
opts := NewCMDOpts()
opts.Command = "which python"
out := CmdV2(opts)
return out.Stdout
}
func GetProgramDirectory() string {
pd := filepath.Join(os.Getenv("ProgramFiles"), ProgFilesName)
return pd
}
func GetProgramBin() string {
exe := filepath.Join(GetProgramDirectory(), winExeName)
return exe
}