summaryrefslogtreecommitdiff
path: root/utils/lib.sh
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-09-17 10:44:29 +0200
committerAlexandre Flament <alex@al-f.net>2021-09-17 14:15:35 +0200
commite5e322e8edfec75436168975cca460f0aa422ada (patch)
tree73a69bbf9ab76ae051d971d5ddfec198c6b2595a /utils/lib.sh
parent8905607d1c6975146c258d6afcd685272216cef8 (diff)
downloadsearxng-e5e322e8edfec75436168975cca460f0aa422ada.tar.gz
searxng-e5e322e8edfec75436168975cca460f0aa422ada.zip
[mod] utils/lib.sh: add pyenv.activate
* initialize virtualenv (pyenv.install) * activate virtualenv close #310
Diffstat (limited to 'utils/lib.sh')
-rwxr-xr-xutils/lib.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/lib.sh b/utils/lib.sh
index 028450ab4..7f6ff58c4 100755
--- a/utils/lib.sh
+++ b/utils/lib.sh
@@ -725,6 +725,14 @@ pyenv.cmd() {
)
}
+
+pyenv.activate() {
+ pyenv.install
+ # shellcheck source=/dev/null
+ source "${PY_ENV_BIN}/activate"
+}
+
+
# Sphinx doc
# ----------