This function opens the documentation in a web browser.
Uses the webbrowser
module to open the HTML documentation located at OPC_Connector/Documentation/index.html
.
Raises a FileNotFoundError
if the documentation file is not found, ensuring the user is aware of missing documentation resources.
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)