l.t.script : module documentation

Part of lp.testing

Helper functions for running external commands.
Function run_command Run an external command in a separate process.
Function run_script Run a Python script in a child process, using current interpreter.
def run_command(command, args=None, input=None, shell=False):
Run an external command in a separate process.
Parameterscommandexecutable to run.
argsoptional list of command-line arguments.
inputoptional text to feed to command's standard input.
shellpassed directly to subprocess.Popen.
Returnstuple of return value, standard output, and standard error.
def run_script(script, args=None, input=None):
Run a Python script in a child process, using current interpreter.
ParametersscriptPython script to run.
argsoptional list of command-line arguments.
inputoptional string to feed to standard input.
Returnstuple of return value, standard output, and standard error.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.