From 5ab832be1911d7c80d6fe1aaac916346643357c0 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 21 Sep 2016 07:57:00 +0200 Subject: Add new stop words. --- src/web/lib/misc_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/web/lib/misc_utils.py') diff --git a/src/web/lib/misc_utils.py b/src/web/lib/misc_utils.py index ea0b18ce..fc49dd6d 100755 --- a/src/web/lib/misc_utils.py +++ b/src/web/lib/misc_utils.py @@ -34,6 +34,7 @@ __license__ = "AGPLv3" # import re +import os import sys import glob import opml @@ -242,7 +243,8 @@ def load_stop_words(): """ Load the stop words and return them in a list. """ - stop_words_lists = glob.glob('./JARR/var/stop_words/*.txt') + stop_words_lists = glob.glob(os.path.join(conf.BASE_DIR, + 'web/var/stop_words/*.txt')) stop_words = [] for stop_wods_list in stop_words_lists: -- cgit