config.py
from pathlib import Path
import sys, os
APP_VERSION = "1.0.0"
# resource helper similar to earlier single-file
def is_frozen():
return getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS")
def resource_path(relative: str) -> Path:
if is_frozen():
base = Path(sys._MEIPASS)
return base / relative
return Path(relative).absolute()