Userspezifische GUI-Configs nun möglich
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
[Fenster]
|
||||||
|
CanvasBreite=1080
|
||||||
|
CanvasHoehe=1920
|
||||||
|
Dimension=1080x1920
|
||||||
@@ -487,7 +487,13 @@ class InvaldCharsConfig():
|
|||||||
class GuiConfig(IniBasedConfig):
|
class GuiConfig(IniBasedConfig):
|
||||||
"""Auslesen der Zusatzinformationen die aus dem Änderungsindex abgeleitet werden"""
|
"""Auslesen der Zusatzinformationen die aus dem Änderungsindex abgeleitet werden"""
|
||||||
def __init__(self, config_dir='.', config_file='gui.cfg'):
|
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:
|
class Configs:
|
||||||
"""Sammlung aller Configdateien """
|
"""Sammlung aller Configdateien """
|
||||||
|
|||||||
Reference in New Issue
Block a user