Update src/utils/paths.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
2e377d2c78
commit
aa214624c9
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue