launch.events.process.running_process_event module

Module for RunningProcessEvent event.

class launch.events.process.running_process_event.RunningProcessEvent[source]

Bases: Event

Event base class that is related to some running process.

__init__(*, action: ExecuteProcess, name: str, cmd: List[str], cwd: str | None, env: Dict[str, str] | None, pid: int) None[source]

Create a RunningProcessEvent.

Param:

action is the ExecuteProcess action associated with the event

Param:

name is the final name of the process instance, which is unique

Param:

cmd is the final command after substitution expansion

Param:

cwd is the final working directory after substitution expansion

Param:

env is the final environment variables after substitution expansion

property action: ExecuteProcess

Getter for action.

property cmd: List[str]

Getter for cmd.

property cwd: str | None

Getter for cwd.

property env: Dict[str, str] | None

Getter for env.

property execute_process_action: ExecuteProcess

Getter for execute_process_action.

name = 'launch.events.process.RunningProcessEvent'
property pid: int

Getter for pid.

property process_name: str

Getter for process_name.