from pathlib import Path import os PATH = Path("/home/user/app") if os.environ.get("SYSTEM") == "spaces" else Path("app")