nächster versuch
This commit is contained in:
parent
4a832714d9
commit
39f90fc9e4
@ -11,6 +11,7 @@ def load_configs(config_dir='configs'):
|
|||||||
außer default_sounds.json (die wird separat geladen).
|
außer default_sounds.json (die wird separat geladen).
|
||||||
"""
|
"""
|
||||||
configs = []
|
configs = []
|
||||||
|
data = json.load(f)
|
||||||
if not os.path.exists(config_dir):
|
if not os.path.exists(config_dir):
|
||||||
logger.warning(f"Config-Verzeichnis nicht gefunden: {config_dir}")
|
logger.warning(f"Config-Verzeichnis nicht gefunden: {config_dir}")
|
||||||
return configs
|
return configs
|
||||||
@ -38,6 +39,7 @@ def load_default_sounds(config_dir='configs'):
|
|||||||
Wird immer geladen, unabhängig von der aktuellen Lok-Konfiguration
|
Wird immer geladen, unabhängig von der aktuellen Lok-Konfiguration
|
||||||
"""
|
"""
|
||||||
path = os.path.join(config_dir, 'default_sounds.json')
|
path = os.path.join(config_dir, 'default_sounds.json')
|
||||||
|
data = json.load(f)
|
||||||
|
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
logger.info("Keine default_sounds.json gefunden → keine globalen Sounds")
|
logger.info("Keine default_sounds.json gefunden → keine globalen Sounds")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user