on master help sign in
[fix] PYTHONPATH settings
commitfd651083f2521d0ba3af9dbf50862ed5a9f19f63 authorasciimoo <asciimoo@gmail.com> dateFri 14 Feb 2014, 16:16 (13 years ago) parent178d671
1 file changed+5
searx/webapp.py+5
searx/webapp.py+5
@@ -17,6 +17,11 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
1717(C) 2013- by Adam Tauber, <asciimoo@gmail.com>
1818'''
1919
20+if __name__ == '__main__':
21+ from sys import path
22+ from os.path import realpath, dirname
23+ path.append(realpath(dirname(realpath(__file__))+'/../'))
24+
2025import json
2126import cStringIO
2227import os