This commit is contained in:
Auric Vente
2024-07-18 21:08:11 -06:00
parent fa1f5301ae
commit c95dab8e57
9 changed files with 120 additions and 48 deletions

View File

@@ -1,20 +1,21 @@
from __future__ import annotations
from pathlib import Path
import appdirs # type: ignore
class Config:
title = "Cromulant"
width = 800
height = 600
max_ants = 100
here: str
title: str = "Cromulant"
width: int = 800
height: int = 600
max_ants: int = 100
here: Path
ants_json: Path
icon_path: Path
image_path: Path
names_json: Path
@staticmethod
def prepare() -> None:
Config.here = Path(__file__).parent
@@ -26,4 +27,4 @@ class Config:
Config.icon_path = Config.here / "img" / "icon_4.jpg"
Config.image_path = Config.here / "img" / "icon_7.jpg"
Config.names_json = Config.here / "data" / "names.json"
Config.names_json = Config.here / "data" / "names.json"