Initial Commit für das Grundgerüst der Anwendung, bestehend aus der Dev-Container Konfiguration, der Docker und docker-Compose Definitionen sowie der Verzeichnisse App_Server für die Backend-Programme sowie Client für die browserseitigen GUI-Komponenten
This commit is contained in:
1 parent
10549934ea
commit
1ba78992a6
63 files changed
+5410
No files matched your search
@@ -0,0 +1,26 @@
|
||||
from pathlib import Path
|
||||
from configparser import ConfigParser
|
||||
|
||||
class Configuration:
|
||||
def __init__(self, configfilename:str|Path):
|
||||
self.config:ConfigParser = ConfigParser()
|
||||
self.config.read(configfilename)
|
||||
|
||||
@property
|
||||
def debug(self) -> bool:
|
||||
return self.config["DEBUG"].getboolean("debug")
|
||||
|
||||
@property
|
||||
def clientapp_version(self) -> str:
|
||||
return self.config["APP"].get("version")
|
||||
|
||||
@property
|
||||
def app_projectname(self) -> str:
|
||||
return self.config["APP"].get("projectname")
|
||||
|
||||
@property
|
||||
def flask_secret(self) -> str:
|
||||
return self.config["APP"].get("flasksecret")
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user