python

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendPythonPath added in v0.24.0

func AppendPythonPath(cmd *exec.Cmd, path string)

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(configuredPythonPath string) (*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