refactor: build plugin

This commit is contained in:
debugtalk
2022-06-13 23:40:45 +08:00
parent 182d2fd5d8
commit 9de49a1d29
11 changed files with 93 additions and 300 deletions
-4
View File
@@ -185,10 +185,6 @@ func InstallPythonPackage(python3 string, pkg string) (err error) {
return nil
}
func CheckPythonScriptSyntax(path string) error {
return ExecCommand("python3", "-m", "py_compile", path)
}
func ExecCommandInDir(cmd *exec.Cmd, dir string) error {
log.Info().Str("cmd", cmd.String()).Str("dir", dir).Msg("exec command")
cmd.Dir = dir