Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Put the resources in the package

Daoud Clarke476481c5f817
diff --git a/Dockerfile b/Dockerfile
index 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 package
COPY pyproject.toml poetry.lock /app/
COPY mwmbl /app/mwmbl
-COPY resources /app/resources
# Working directory is /app
# Use pip to install the mwmbl python package
diff --git a/resources/mwmbl-crawl-terms.csv b/mwmbl/resources/mwmbl-crawl-terms.csv
similarity index 100%
rename from resources/mwmbl-crawl-terms.csv
rename to mwmbl/resources/mwmbl-crawl-terms.csv
diff --git a/mwmbl/tinysearchengine/completer.py b/mwmbl/tinysearchengine/completer.py
index 5ef52d5..df0356e 100644
--- a/mwmbl/tinysearchengine/completer.py
+++ b/mwmbl/tinysearchengine/completer.py
@@ -4,7 +4,7 @@ from pathlib import Path
import 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: