An open source, non-profit web search engine
Fix path of justext when loading stopwords
Daoud Clarke91e67a850ed7
diff --git a/mwmbl/justext/utils.py b/mwmbl/justext/utils.pyindex bf04e3a..32ece57 100644--- a/mwmbl/justext/utils.py+++ b/mwmbl/justext/utils.py@@ -52,7 +52,7 @@ def get_stoplist(language):"""Returns an built-in stop-list for the language as a set of words."""file_path = os.path.join("stoplists", "%s.txt" % language)try:- stopwords = pkgutil.get_data("justext", file_path)+ stopwords = pkgutil.get_data("mwmbl.justext", file_path)except IOError:raise ValueError("Stoplist for language '%s' is missing. "