diff options
author | Alexandre Flament <alex@al-f.net> | 2021-09-17 10:44:29 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-09-17 14:15:35 +0200 |
commit | e5e322e8edfec75436168975cca460f0aa422ada (patch) | |
tree | 73a69bbf9ab76ae051d971d5ddfec198c6b2595a /utils/lib.sh | |
parent | 8905607d1c6975146c258d6afcd685272216cef8 (diff) | |
download | searxng-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-x | utils/lib.sh | 8 |
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 # ---------- |