v0.0.1 first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class AppPaths:
|
||||
base_dir: Path
|
||||
|
||||
@property
|
||||
def venv_dir(self) -> Path:
|
||||
return self.base_dir / ".venv"
|
||||
|
||||
@property
|
||||
def data_dir(self) -> Path:
|
||||
return self.base_dir / "data"
|
||||
|
||||
@property
|
||||
def db_path(self) -> Path:
|
||||
return self.data_dir / "config.db"
|
||||
|
||||
@property
|
||||
def requirements_path(self) -> Path:
|
||||
return self.base_dir / "requirements.txt"
|
||||
Reference in New Issue
Block a user