aboutsummaryrefslogtreecommitdiff
path: root/src/web/lib/misc_utils.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-21 07:57:00 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-21 07:57:00 +0200
commit5ab832be1911d7c80d6fe1aaac916346643357c0 (patch)
treef7046b3fea0332b68c835d693fc6b4f296de10ed /src/web/lib/misc_utils.py
parentAdded more comments. (diff)
downloadnewspipe-5ab832be1911d7c80d6fe1aaac916346643357c0.tar.gz
newspipe-5ab832be1911d7c80d6fe1aaac916346643357c0.tar.bz2
newspipe-5ab832be1911d7c80d6fe1aaac916346643357c0.zip
Add new stop words.
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