Fix shared path

This commit is contained in:
James Ketr 2025-09-09 14:16:26 -07:00
parent fd798c98aa
commit 5e44904956

View File

@ -8,8 +8,12 @@ import logging
import sys import sys
import os import os
# Add the voicebot directory to the path # Add the project root (parent of the voicebot directory) to sys.path so
sys.path.append(os.path.dirname(os.path.abspath(__file__))) # imports like `from shared import ...` work when running this script from
# inside the `voicebot` container.
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if project_root not in sys.path:
sys.path.append(project_root)
from shared.logger import logger from shared.logger import logger