Update src/utils/paths.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Eric Hare 2025-12-12 08:29:45 -08:00 committed by GitHub
parent 2e377d2c78
commit aa214624c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,9 @@ def get_openrag_home() -> Path:
# This maintains backward compatibility with existing Docker setups
container_env = detect_container_environment()
if container_env:
# In containers, paths are managed by Docker volumes
# In containers, return the container's working directory.
# This ensures compatibility with existing Docker volume mounts,
# as Docker typically mounts volumes into the working directory.
return Path.cwd()
# In local environments, use centralized location