aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Herlédan <sylvain.herledan@hrafnagud.info>2021-08-29 13:42:27 +0000
committerSylvain Herlédan <sylvain.herledan@hrafnagud.info>2021-08-29 13:42:27 +0000
commit1894149c383252184d84919487787d6b8e0bcdf2 (patch)
treee53cfe561e1c6d387b518b87de021e30a024d543
parentf8560370595b55d3209aee46315847aee7df4d39 (diff)
downloadadmin_toolbox-1894149c383252184d84919487787d6b8e0bcdf2.tar.gz
admin_toolbox-1894149c383252184d84919487787d6b8e0bcdf2.tar.bz2
admin_toolbox-1894149c383252184d84919487787d6b8e0bcdf2.zip
Install environment at the root of the target directory.HEADmaster
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-xpython_install.sh11
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