get_working_dir#

Optislang.get_working_dir() Path#

Get the path to the optiSLang project’s working directory.

Returns:
pathlib.Path

Path to the optiSLang project’s working directory. If no project is loaded in optiSLang, None is returned.

Raises:
OslCommunicationError

Raised when an error occurs while communicating with the server.

OslCommandError

Raised when a command or query fails.

TimeoutError

Raised when the timeout float value expires.

Deprecated since version 0.6.0: This functionality was moved to Project.