Package zeroinstall :: Package injector :: Module run
[frames] | no frames]

Module run

source code

Executes a set of implementations as a program.

Classes
  Setup
Functions
 
do_env_binding(binding, path)
Update this process's environment by applying the binding.
source code
 
test_selections(selections, prog_args, dry_run, main)
Run the program in a child process, collecting stdout and stderr.
source code
 
execute_selections(selections, prog_args, dry_run=False, main=None, wrapper=None, stores=None)
Execute program.
source code
Function Details

do_env_binding(binding, path)

source code 

Update this process's environment by applying the binding.

Parameters:

test_selections(selections, prog_args, dry_run, main)

source code 

Run the program in a child process, collecting stdout and stderr.

Returns:
the output produced by the process

Since: 0.27

execute_selections(selections, prog_args, dry_run=False, main=None, wrapper=None, stores=None)

source code 

Execute program. On success, doesn't return. On failure, raises an Exception. Returns normally only for a successful dry run.

Parameters:
  • selections (selections.Selections) - the selected versions
  • prog_args ([str]) - arguments to pass to the program
  • dry_run (bool) - if True, just print a message about what would have happened
  • main (str) - the name of the binary to run, or None to use the default
  • wrapper (str) - a command to use to actually run the binary, or None to run the binary directly
  • stores (zeroinstall.zerostore.Stores | None)

Since: 0.27

Precondition: All implementations are in the cache.