Ver código fonte

[fix] new settings import

asciimoo 11 anos atrás
pai
commit
f3749434f1
1 arquivos alterados com 1 adições e 7 exclusões
  1. 1
    7
      searx/webapp.py

+ 1
- 7
searx/webapp.py Ver arquivo

@@ -22,13 +22,7 @@ import sys
22 22
 if __name__ == "__main__":
23 23
     sys.path.append(os.path.realpath(os.path.dirname(os.path.realpath(__file__))+'/../'))
24 24
 
25
-# first argument is for specifying settings module, used mostly by robot tests
26
-from sys import argv
27
-if len(argv) == 2:
28
-    from importlib import import_module
29
-    settings = import_module('searx.' + argv[1])
30
-else:
31
-    from searx import settings
25
+from searx import settings
32 26
 
33 27
 from flask import Flask, request, render_template, url_for, Response, make_response, redirect
34 28
 from searx.engines import search, categories, engines, get_engines_stats