summaryrefslogtreecommitdiff
path: root/searx/shared/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/shared/__init__.py')
-rw-r--r--searx/shared/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/searx/shared/__init__.py b/searx/shared/__init__.py
index 98c9a11c2..f03679c61 100644
--- a/searx/shared/__init__.py
+++ b/searx/shared/__init__.py
@@ -1,11 +1,14 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
import logging
+import importlib
logger = logging.getLogger('searx.shared')
+__all__ = ['SharedDict', 'schedule']
+
try:
- import uwsgi
+ uwsgi = importlib.import_module('uwsgi')
except:
# no uwsgi
from .shared_simple import SimpleSharedDict as SharedDict, schedule