execute(policy,
prog_args,
dry_run=False,
main=None,
wrapper=None)
| source code
|
Execute program. On success, doesn't return. On failure, raises an
Exception. Returns normally only for a successful dry run.
- Parameters:
policy (policy.Policy) - a policy with 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
Precondition:
policy.ready and policy.get_uncached_implementations() ==
[]
|