An open source, non-profit web search engine
Put the resources in the package
Daoud Clarke476481c5f817
diff --git a/Dockerfile b/Dockerfileindex 1176200..3ebe54a 100644--- a/Dockerfile+++ b/Dockerfile@@ -20,7 +20,6 @@ RUN python -m venv /venv# Copy only the necessary files to build/install the python packageCOPY pyproject.toml poetry.lock /app/COPY mwmbl /app/mwmbl-COPY resources /app/resources# Working directory is /app# Use pip to install the mwmbl python packagediff --git a/resources/mwmbl-crawl-terms.csv b/mwmbl/resources/mwmbl-crawl-terms.csvsimilarity index 100%rename from resources/mwmbl-crawl-terms.csvrename to mwmbl/resources/mwmbl-crawl-terms.csvdiff --git a/mwmbl/tinysearchengine/completer.py b/mwmbl/tinysearchengine/completer.pyindex 5ef52d5..df0356e 100644--- a/mwmbl/tinysearchengine/completer.py+++ b/mwmbl/tinysearchengine/completer.py@@ -4,7 +4,7 @@ from pathlib import Pathimport pandas as pd-TERMS_PATH = Path(__file__).parent.parent.parent / 'resources' / 'mwmbl-crawl-terms.csv'+TERMS_PATH = Path(__file__).parent.parent / 'resources' / 'mwmbl-crawl-terms.csv'class Completer: