fix: use python instead of python3 if python3 is not available on windows

This commit is contained in:
xucong053
2022-06-15 11:27:35 +08:00
parent 4fdb24a8a8
commit 94366b0ecc
15 changed files with 55 additions and 20 deletions

View File

@@ -194,7 +194,7 @@ func buildGo(path string, output string) error {
func buildPy(path string, output string) error {
log.Info().Str("path", path).Str("output", output).Msg("start to prepare python plugin")
// check the syntax of debugtalk.py
err := builtin.ExecCommand("python3", "-m", "py_compile", path)
err := builtin.ExecPython3Command("py_compile", path)
if err != nil {
return errors.Wrap(err, "python plugin syntax invalid")
}