# call the Holoeye python library for the correct path

import os
from pathlib import Path
import sys
from pathlib import Path
from pymodaq_utils.logger import set_logger  # to be imported by other modules.

from pymodaq_plugins_holoeye.utils import Config
config = Config()


environs = []
for env in os.environ.keys():
    if 'HEDS' in env and 'MODULES' in env:
        environs.append(env)

environs = sorted(environs)
if 'HEDS_PYTHON_MODULES' in environs:  #old stuff without the sdk version
    environs.remove('HEDS_PYTHON_MODULES', )
sys.path.append(os.getenv(environs[-1], ''))

