rs2.utilities.ApplicationManager module#
- class rs2.utilities.ApplicationManager.ApplicationManager#
Bases:
object
- minimumPort = 49152#
- maximumPort = 65535#
- defaultTimeout = 30#
- startApplication(pathToExecutable: str, port: int, timeout: float = 30)#
Starts the application specified by pathToExecutable and starts the python server on the given port. Returns when the server is ready to accept requests. Throws TimeoutError exception if the server is not ready within that time.
- Parameters:
pathToExecutable (str) – the full path to the executable of the application you want to start.
port (int) –
the port number you want the python server to bind to.
minimumPort = 49152
maximumPort = 65535
timeout (int) –
time in seconds before we stop trying to start the application
defaultTimeout = 30
- Raises:
ValueError – Port range must be between 49152 and 65535, otherwise ValueError is raised TimeoutError: if timeout is provided, raises TimeoutError if not able to connect to the server within that time.