fix: python PATH order (#1085)

This commit is contained in:
Jonas Plum
2024-07-21 04:21:32 +02:00
committed by GitHub
parent a9e885598c
commit 83251af565

View File

@@ -62,7 +62,7 @@ func (a *Python) Run(ctx context.Context, payload string) ([]byte, error) {
} }
func pythonSetup(ctx context.Context, tempDir string) ([]byte, error) { func pythonSetup(ctx context.Context, tempDir string) ([]byte, error) {
pythonPath, err := findExec("python", "python3") pythonPath, err := findExec("python3", "python")
if err != nil { if err != nil {
return nil, fmt.Errorf("python or python3 binary not found, %w", err) return nil, fmt.Errorf("python or python3 binary not found, %w", err)
} }