Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] PYTHONPATH settings

asciimoofd651083f252
diff --git a/searx/webapp.py b/searx/webapp.py
index 7477e1722..eb4240f44 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -17,6 +17,11 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
(C) 2013- by Adam Tauber, <[email protected]>
'''
+if __name__ == '__main__':
+ from sys import path
+ from os.path import realpath, dirname
+ path.append(realpath(dirname(realpath(__file__))+'/../'))
+
import json
import cStringIO
import os