physai-backend / api /index.py
HAK-16's picture
Initial deployment of PhysAI backend
23943f9
Raw History Blame Contribute Delete
357 Bytes
import os
import sys
# Get the directory of this file (api)
current_dir = os.path.dirname(os.path.abspath(__file__))
# Get the parent directory (project root)
parent_dir = os.path.dirname(current_dir)
# Get the src directory
src_dir = os.path.join(parent_dir, 'src')
# Add src to sys.path
sys.path.append(src_dir)
# Import the app
from src.main import app