run_python_script#
- Optislang.run_python_script(script: str, args: Sequence[object] | None = None) Tuple[str, str]#
Load a Python script in a project context and run it.
- Parameters:
- Returns:
- Raises:
OslCommunicationErrorRaised when an error occurs while communicating with the server.
OslCommandErrorRaised when a command or query fails.
TimeoutErrorRaised when the timeout float value expires.
Deprecated since version 0.6.0: This functionality was moved to
Project.