mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-02 22:39:42 +08:00
Merge pull request #1346 from xucong053/bugfix
fix: ensure all dependencies in debugtalk.go are installed
This commit is contained in:
@@ -103,6 +103,11 @@ func EnsurePython3Venv(packages ...string) (string, error) {
|
||||
return python3, nil
|
||||
}
|
||||
|
||||
func CheckPythonScriptSyntax(path string) error {
|
||||
err := ExecCommand("python3", "-m", "py_compile", path)
|
||||
return err
|
||||
}
|
||||
|
||||
func ExecCommandInDir(cmd *exec.Cmd, dir string) error {
|
||||
log.Info().Str("cmd", cmd.String()).Str("dir", dir).Msg("exec command")
|
||||
cmd.Dir = dir
|
||||
|
||||
Reference in New Issue
Block a user