func Resolve() (*Python, error) {
	_, err := exec.LookPath("python3")

	if err != nil {
		_, err = exec.LookPath("python")
		if err != nil {
			return nil, err
		}
		ret := Python("python")
		return &ret, nil
	}

	ret := Python("python3")
	return &ret, nil
}
// Resolve tries to find the python executable in the system.
// It first checks for python3, then python.
// Returns nil and an exec.ErrNotFound error if not found.
Resolve tries to find the python executable in the system.
It first checks for python3, then python.
Returns nil and an exec.ErrNotFound error if not found.
// Resolve tries to find the python executable in the system . // It first checks for python3 then python . // Returns nil and an exec . ErrNotFound error if not found .
func Resolve() (*Python, error) {
	_, err := exec.LookPath("python3")
	if err != nil {
		_, err = exec.LookPath("python")
		if err != nil {
			return nil, err
		}
		ret := Python("python")
		return &ret, nil
	}
	ret := Python("python3")
	return &ret, nil
}
func Resolve ( ) ( * Python , error ) { _ , err := exec . LookPath ( " " ) if err != nil { _ , err = exec . LookPath ( " " ) if err != nil { return nil , err } ret := Python ( " " ) return & ret , nil } ret := Python ( " " ) return & ret , nil }
Resolve tries to find the python executable in the system.
Resolve tries to find the python executable in the system .