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 View File

17
 (C) 2013- by Adam Tauber, <asciimoo@gmail.com>
17
 (C) 2013- by Adam Tauber, <asciimoo@gmail.com>
18
 '''
18
 '''
19
 
19
 
20
+if __name__ == '__main__':
21
+    from sys import path
22
+    from os.path import realpath, dirname
23
+    path.append(realpath(dirname(realpath(__file__))+'/../'))
24
+
20
 import json
25
 import json
21
 import cStringIO
26
 import cStringIO
22
 import os
27
 import os