import os, sys
from pathlib import Path

INTERP = "/home/devsgone/apps/devs-gone-wild-app/.venv/bin/python3"
if sys.executable != INTERP:
    os.execl(INTERP, INTERP, *sys.argv)

APP_ROOT = Path(__file__).resolve().parent
sys.path.insert(0, str(APP_ROOT))

sys.stderr.write(f"!!!!!! [passenger_wsgi] python: {sys.executable}\n")

# Activate your venv (choose ONE: myenv or .venv)
act = APP_ROOT / ".venv" / "bin" / "activate_this.py"

if act.exists():
    exec(open(act).read(), {'__file__': str(act)})


os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
from config.wsgi import application
                                    