Skip to content
Snippets Groups Projects
Commit 8ece4e13 authored by Benedikt's avatar Benedikt
Browse files

should fix #14

parent 9f1cd656
No related branches found
No related tags found
No related merge requests found
Pipeline #52505 passed
......@@ -358,11 +358,19 @@ def get_system_language() -> str:
class DccConfiguration:
"""Global configuration singleton for language preferences."""
systemLang = get_system_language()
preferredLangs = [systemLang, "en", "de"]
reprStyle = "normal" # Can be "libDebug" or "normal"
_instance = None
def __new__(cls):
if cls._instance is None:
cls._instance = super(DccConfiguration, cls).__new__(cls)
"""Global configuration singleton for language preferences."""
cls.systemLang = get_system_language()
cls.preferredLangs = [get_system_language(), "en", "de"]
cls.reprStyle = "normal" # Can be "libDebug" or "normal"
return cls._instance
dccConfiguration = DccConfiguration()
......
......@@ -143,13 +143,4 @@ def test_allFiles():
quantTypeObjects=parse(file.read())
print(f"Parsed file {dccFile} with no exceptions!")
except Exception as e:
raise e
raise e
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment