Mods
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user