AppSec-Agent / server /__init__.py
NamanTiwari's picture
Add files via upload
3e09a52 unverified
Raw History Blame Contribute Delete
380 Bytes
# Server package for OpenEnv AI AppSec Code Reviewer
#
# Ensures the project root is on sys.path so that `from models import ...`
# works regardless of how the server is started (uvicorn, uv run, Docker, etc.)
import sys
from pathlib import Path
_PROJECT_ROOT = str(Path(__file__).resolve().parent.parent)
if _PROJECT_ROOT not in sys.path:
sys.path.insert(0, _PROJECT_ROOT)