Discover Packages
github.com/stashapp/stash
pkg
python
package
Version:
v0.28.1
Opens a new window with list of versions in this module.
Published: Mar 19, 2025
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types AppendPythonPath(cmd, path) IsPythonCommand(arg) type Python New(path) Resolve(configuredPythonPath) (p) Command(ctx, args)
Documentation
¶
Package python provides utilities for working with the python executable.
func AppendPythonPath (cmd *exec.Cmd, path string )
func IsPythonCommand (arg string ) bool
IsPythonCommand returns true if arg is "python" or "python3"
func New (path string ) *Python
New returns a new Python instance at the given path.
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 (p *Python) Command(ctx context.Context, args []string ) *exec.Cmd
Source Files
¶
Click to show internal directories.
Click to hide internal directories.