Skip to content

Constants

Application-wide constants and path definitions. Only values used by 3+ unrelated modules belong here. Module-specific constants go in that module's constants/ directory.

Files

File Content
app.py Application identity (APP_NAME, APP_VERSION), window sizes, environment config
cloud.py Cloud service endpoints (R2 bucket, GitHub API, OAuth config), environment switching
paths.py Cross-module PathDef definitions (cache, stylesheets, icons, documents, logs)

Path Definitions

Global PathDef constants in paths.py follow this rule: if a path is consumed by three or more unrelated modules, define it here. Otherwise, define it in the owning module's constants/paths.py.

from src.shared_services.constants.paths import Logging, Icons
from src.shared_services.path_management.api import get_path

log_dir = get_path(Logging.Directory)