We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f16d58c commit fc1a2e6Copy full SHA for fc1a2e6
1 file changed
docker_image/populate_database.py
@@ -32,9 +32,10 @@
32
logger = logging.getLogger(__name__)
33
34
# Paths work both locally (from docker_image/) and inside Docker (from /var/task/)
35
+_script_dir = Path(__file__).resolve().parent
36
_in_docker = os.path.exists("/var/task")
-CHROMA_PATH = "data/chroma" if _in_docker else "src/data/chroma"
37
-DATA_SOURCE_PATH = "data/source" if _in_docker else "src/data/source"
+CHROMA_PATH = str(_script_dir / "data" / "chroma") if _in_docker else "src/data/chroma"
38
+DATA_SOURCE_PATH = str(_script_dir / "data" / "source") if _in_docker else "src/data/source"
39
40
41
def main():
0 commit comments