Bakes the NLTK data into the image (~60mb)

This commit is contained in:
Trenton H
2022-12-02 12:02:56 -08:00
parent 46b637b08e
commit 7af355191d
3 changed files with 5 additions and 31 deletions

View File

@@ -123,7 +123,7 @@ THUMBNAIL_DIR = os.path.join(MEDIA_ROOT, "documents", "thumbnails")
DATA_DIR = __get_path("PAPERLESS_DATA_DIR", os.path.join(BASE_DIR, "..", "data"))
NLTK_DIR = os.path.join(DATA_DIR, "nltk")
NLTK_DIR = __get_path("PAPERLESS_NLTK_DIR", "/usr/local/share/nltk_data")
TRASH_DIR = os.getenv("PAPERLESS_TRASH_DIR")