feat #1342: support specify custom python3 venv

This commit is contained in:
debugtalk
2022-06-13 21:31:05 +08:00
parent f24c453890
commit 182d2fd5d8
35 changed files with 381 additions and 123 deletions
+1 -6
View File
@@ -48,12 +48,7 @@ func convert2GoTestScripts(paths ...string) error {
}
// format pytest scripts with black
python3, err := builtin.EnsurePython3Venv("black")
if err != nil {
return err
}
args := append([]string{"-m", "black"}, pytestPaths...)
return builtin.ExecCommand(python3, args...)
return builtin.ExecPython3Command("black", pytestPaths...)
}
//go:embed testcase.tmpl