summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-02-14 16:16:20 +0100
committerasciimoo <asciimoo@gmail.com>2014-02-14 16:16:20 +0100
commitfd651083f2521d0ba3af9dbf50862ed5a9f19f63 (patch)
tree82638ec6d0b311a809c8b12fe69552a59cdcca3f /searx/webapp.py
parent178d67193143491f6839df9a4f83ff5640b1286a (diff)
downloadsearxng-fd651083f2521d0ba3af9dbf50862ed5a9f19f63.tar.gz
searxng-fd651083f2521d0ba3af9dbf50862ed5a9f19f63.zip
[fix] PYTHONPATH settings
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py5
1 files changed, 5 insertions, 0 deletions
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, <asciimoo@gmail.com>
'''
+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