mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 15:31:23 +08:00
fix: use python instead of python3 if python3 is not available on windows
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user