Skip to content

Script Helpers

rerun

def script_add_args(parser)

Add common Rerun script arguments to parser.

PARAMETER DESCRIPTION
parser

The parser to add arguments to.

TYPE: ArgumentParser

def script_setup(args, application_id)

Run common Rerun script setup actions. Connect to the viewer if necessary.

PARAMETER DESCRIPTION
args

The parsed arguments from parser.parse_args().

TYPE: Namespace

application_id

The application ID to use for the viewer.

TYPE: str

def script_teardown(args)

Run common post-actions. Sleep if serving the web viewer.

PARAMETER DESCRIPTION
args

The parsed arguments from parser.parse_args().

TYPE: Namespace