ScriptExecutor
- class lib.cli.launcher.ScriptExecutor(command: str)
Bases:
objectLoads the relevant script modules and executes the script.
This class is initialized in each of the arg parsers for the relevant command, then execute script is called within their set_default function.
- Parameters:
command (str) – The faceswap command that is being executed
Methods Summary
execute_script(arguments)Performs final set up and launches the requested
_commandwith the given command line arguments.Methods Documentation
- execute_script(arguments: argparse.Namespace) None
Performs final set up and launches the requested
_commandwith the given command line arguments.Monitors for errors and attempts to shut down the process cleanly on exit.
- Parameters:
arguments (argparse.Namespace) – The command line arguments to be passed to the executing script.
- Return type:
None
- execute_script(arguments: argparse.Namespace) None
Performs final set up and launches the requested
_commandwith the given command line arguments.Monitors for errors and attempts to shut down the process cleanly on exit.
- Parameters:
arguments (argparse.Namespace) – The command line arguments to be passed to the executing script.
- Return type:
None