diff options
| author | Sylvain Herlédan <sylvain.herledan@hrafnagud.info> | 2021-08-29 13:42:27 +0000 |
|---|---|---|
| committer | Sylvain Herlédan <sylvain.herledan@hrafnagud.info> | 2021-08-29 13:42:27 +0000 |
| commit | 1894149c383252184d84919487787d6b8e0bcdf2 (patch) | |
| tree | e53cfe561e1c6d387b518b87de021e30a024d543 | |
| parent | f8560370595b55d3209aee46315847aee7df4d39 (diff) | |
| download | admin_toolbox-1894149c383252184d84919487787d6b8e0bcdf2.tar.gz admin_toolbox-1894149c383252184d84919487787d6b8e0bcdf2.tar.bz2 admin_toolbox-1894149c383252184d84919487787d6b8e0bcdf2.zip | |
It was done in a subdirectory named "env" before, so all virtual environments
created with this scripts appeared as "env" in the command line prompt.
| -rwxr-xr-x | python_install.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/python_install.sh b/python_install.sh index f970675..cf17cde 100755 --- a/python_install.sh +++ b/python_install.sh @@ -141,10 +141,13 @@ install_virtualenv() main() { - local python="${1}"; shift; - local _install_dir="${1}"; shift; - local install_dir="$(readlink -f "${_install_dir}")"; - local env_dir="${install_dir}/env"; + local python; + local _env_dir; + local env_dir; + + python="${1}"; shift; + _env_dir="${1}"; shift; + env_dir="$(readlink -f "${_env_dir}")"; trap 'cleanup' INT TERM EXIT |
