gateway/gwserver/configload.py
2025-03-16 16:58:08 +01:00

11 lines
318 B
Python

import configparser
import os
# Konfiguration aus config.ini laden
def load_config():
config = configparser.ConfigParser()
config_path = os.path.join(os.path.dirname(__file__), 'config.ini')
if not os.path.exists(config_path):
exit("No config file")
config.read(config_path)
return config