aboutsummaryrefslogtreecommitdiff
path: root/src/web/lib/misc_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/lib/misc_utils.py')
-rwxr-xr-xsrc/web/lib/misc_utils.py4
1 files changed, 3 insertions, 1 deletions
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:
bgstack15