python

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPythonCommand

func IsPythonCommand(arg string) bool

IsPythonCommand returns true if arg is "python" or "python3"

Types

type Python

type Python string

func New

func New(path string) *Python

New returns a new Python instance at the given path.

func Resolve

func Resolve() (*Python, error)

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 (*Python) Command

func (p *Python) Command(ctx context.Context, args []string) *exec.Cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL