"""
Inscoper API Example Script: Load and Initialize Configuration
==============================================================
This script demonstrates how to load a configuration file and initialize devices.

Configuration Prerequisites:
---------------------------
Change the folder paths and configuration file names below to match your setup.
"""

# --8<-- [start:main_logic]

import inscoper_api

bridge = inscoper_api.Bridge()

bridge.setLibraryPaths(["external/lib/folder/path/1", "external/lib/folder/path/2"])
bridge.loadConfigFile("configuration/folder/path")
bridge.initDevices()

bridge.close()

# --8<-- [end:main_logic]
