|
@@ -65,6 +65,16 @@ from searx.query import Query
|
|
|
from searx.autocomplete import searx_bang, backends as autocomplete_backends
|
|
|
from searx.plugins import plugins
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+try:
|
|
|
+ import OpenSSL.SSL
|
|
|
+ import ndg.httpsclient
|
|
|
+ import pyasn1
|
|
|
+except ImportError:
|
|
|
+ logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
|
|
|
+ "Some HTTPS connections will failed")
|
|
|
+
|
|
|
|
|
|
static_path, templates_path, themes =\
|
|
|
get_themes(settings['themes_path']
|