summaryrefslogtreecommitdiff
path: root/searx/version.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2022-07-30 18:40:16 +0200
committerGitHub <noreply@github.com>2022-07-30 18:40:16 +0200
commit88733c0ce6e76a78593b8e4060e33a617cce3cd8 (patch)
treed5ed9ed522b308b8d572b119da315196dd69ae87 /searx/version.py
parentededaab807a22abdd69a7c802cda3bb256d6ab51 (diff)
parent2babf59adcc9576e6520337515ff150e6434ad85 (diff)
Merge pull request #1569 from dalf/fix-pyright-reported-errors
Fix pyright errors
Diffstat (limited to 'searx/version.py')
-rw-r--r--searx/version.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/version.py b/searx/version.py
index ec72062e6..cefdb7a43 100644
--- a/searx/version.py
+++ b/searx/version.py
@@ -6,6 +6,7 @@ import os
import shlex
import subprocess
import logging
+import importlib
# fallback values
# if there is searx.version_frozen module, and it is not possible to get the git tag
@@ -73,7 +74,8 @@ def get_git_version():
try:
- from searx.version_frozen import VERSION_STRING, VERSION_TAG, GIT_URL, GIT_BRANCH
+ vf = importlib.import_module('searx.version_frozen')
+ VERSION_STRING, VERSION_TAG, GIT_URL, GIT_BRANCH = vf.VERSION_STRING, vf.VERSION_TAG, vf.GIT_URL, vf.GIT_BRANCH
except ImportError:
try:
try: