From 1894149c383252184d84919487787d6b8e0bcdf2 Mon Sep 17 00:00:00 2001 From: Sylvain Herlédan Date: Sun, 29 Aug 2021 13:42:27 +0000 Subject: Install environment at the root of the target directory. 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. --- python_install.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'python_install.sh') 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 -- cgit v1.2.3-70-g09d2