(pythonMajorVersion string, useSysPython bool)
| 273 | } |
| 274 | |
| 275 | func getCommandPython(pythonMajorVersion string, useSysPython bool) (string, error) { |
| 276 | if useSysPython { |
| 277 | return pythonBin, nil |
| 278 | } |
| 279 | |
| 280 | pyPath := filepath.Join(rootDir, getRelPyPath(pythonMajorVersion)) |
| 281 | |
| 282 | if _, err := os.Stat(pyPath); err != nil { |
| 283 | if os.IsNotExist(err) { |
| 284 | return pyPath, errors.New("unable to find python executable") |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | return pyPath, nil |
| 289 | } |
| 290 | |
| 291 | func validateArgs(args []string, local bool) error { |
| 292 | if len(args) > 1 { |
no test coverage detected
searching dependent graphs…