Browse Source

[fix] PYTHONPATH settings

asciimoo 11 years ago
parent
commit
fd651083f2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      searx/webapp.py

+ 5 - 0
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