summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-19 17:17:52 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-19 17:17:52 +0100
commitf3749434f1545d802450dbed126e658b1643292f (patch)
tree7136165ecbae0685ed81d12f16bedc9b23fab3d0
parent3f21dd56e3fbb469d61f47f21209f29f0e73945c (diff)
downloadsearxng-f3749434f1545d802450dbed126e658b1643292f.tar.gz
searxng-f3749434f1545d802450dbed126e658b1643292f.zip
[fix] new settings import
-rw-r--r--searx/webapp.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index de68d73e6..ec02e8f5c 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -22,13 +22,7 @@ import sys
if __name__ == "__main__":
sys.path.append(os.path.realpath(os.path.dirname(os.path.realpath(__file__))+'/../'))
-# first argument is for specifying settings module, used mostly by robot tests
-from sys import argv
-if len(argv) == 2:
- from importlib import import_module
- settings = import_module('searx.' + argv[1])
-else:
- from searx import settings
+from searx import settings
from flask import Flask, request, render_template, url_for, Response, make_response, redirect
from searx.engines import search, categories, engines, get_engines_stats