From 2eccbbbf20576cbb5c1c37f988a1e2a4a53cca21 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 24 Jun 2013 20:36:07 +0200 Subject: Added missing import. --- source/search.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/search.py b/source/search.py index dbad9513..fd412a7e 100644 --- a/source/search.py +++ b/source/search.py @@ -26,6 +26,8 @@ __revision__ = "$Date: 2013/06/24 $" __copyright__ = "Copyright (c) Cedric Bonhomme" __license__ = "GPLv3" +import os + from whoosh.index import create_in, open_dir from whoosh.fields import * from whoosh.qparser import QueryParser @@ -73,7 +75,7 @@ def search(term): if __name__ == "__main__": # Point of entry in execution mode. - #create_index() - results = search("Nothomb") + create_index() + """results = search("Nothomb") for article in results: - print(article) \ No newline at end of file + print(article)""" \ No newline at end of file -- cgit