Userspezifische GUI-Configs nun möglich

This commit is contained in:
2024-04-09 13:29:41 +02:00
parent bc06323061
commit 07a22c5c11
2 changed files with 11 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
[Fenster]
CanvasBreite=1080
CanvasHoehe=1920
Dimension=1080x1920
+7 -1
View File
@@ -487,7 +487,13 @@ class InvaldCharsConfig():
class GuiConfig(IniBasedConfig):
"""Auslesen der Zusatzinformationen die aus dem Änderungsindex abgeleitet werden"""
def __init__(self, config_dir='.', config_file='gui.cfg'):
super().__init__(config_dir, config_file)
username = os.environ.get("USERNAME")
spezific_file = 'gui-' + username + '.cfg'
spezific_path = os.path.join(config_dir,spezific_file)
if os.path.exists(spezific_path):
config_file=spezific_file
super().__init__(config_dir, config_file=config_file)
class Configs:
"""Sammlung aller Configdateien """