11 lines
318 B
Python
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
|