Return the path to the KLayout executable if it is installed.
The executable is located by checking the system PATH and common platform-specific installation locations.
Parameters:
raise_error (bool) – Whether to raise an error if KLayout is not found. If False, a warning is shown.
Returns:
The path to the KLayout executable. If KLayout is not found, returns None.