3
0

make path of custom templates and static files configurable

This commit is contained in:
2023-11-15 13:14:45 +01:00
parent a7dc356dd9
commit 5c5a309934
3 changed files with 13 additions and 8 deletions
+2
View File
@@ -22,6 +22,7 @@ class Config:
api_port: int
controller_port: int
database_file: str # empty str: disable database
custom: str
debug: bool
@staticmethod
@@ -58,6 +59,7 @@ class Config:
api_port=data.pop("api-port", 8000),
controller_port=data.pop("controller-port", 5000),
database_file=str(data.pop("database-file", "capport.state")),
custom=str(data.pop("custom", "custom")),
debug=data.pop("debug", False),
)
if data: