get_osl_exec#
- ansys.optislang.core.utils.get_osl_exec(osl_version: int | str | None = None) Tuple[int, Path] | None#
Get the path to the optiSLang executable file.
- Parameters:
- Returns:
Optional[Tuple[int,pathlib.Path]]optiSLang version and path to the corresponding executable file, if it exists. If both Ansys and standalone installations are present, the latest Ansys installation is returned. If no executable file is found for a specified version,
Noneis returned.
- Raises:
NotImplementedErrorRaised when the operating system is not supported.