open_documentation Function

This function opens the documentation in a web browser.

Description

Uses the webbrowser module to open the HTML documentation located at OPC_Connector/Documentation/index.html.

Exception Handling

Raises a FileNotFoundError if the documentation file is not found, ensuring the user is aware of missing documentation resources.

Code Example

def open_documentation() -> None:
    documentation_path = "OPC_Connector/Documentation/index.html"
    if not os.path.isfile(documentation_path):
        raise FileNotFoundError("Documentation file not found.")
    webbrowser.open(documentation_path)