From 4f156e96f94098925ac5c462a3d5abc47f2758c5 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 7 Jan 2025 12:31:22 +0200 Subject: [PATCH] venv by user --- publish_active_windows.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/publish_active_windows.sh b/publish_active_windows.sh index b34a672..fb08081 100755 --- a/publish_active_windows.sh +++ b/publish_active_windows.sh @@ -1,10 +1,10 @@ #!/bin/bash script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -if [ ! -d "${script_dir}/.venv" ]; then - python -m venv "$script_dir/.venv" +if [ ! -d "${script_dir}/.venv/${USER}/" ]; then + python -m venv "${script_dir}/.venv/${USER}" fi -# shellcheck disable=1091 -source "$script_dir/.venv/bin/activate" -pip install -r "$script_dir/requirements.txt" > /dev/null -pip install "$script_dir/" > /dev/null +# shellcheck disable=1090 +source "${script_dir}/.venv/${USER}/bin/activate" +pip install -r "${script_dir}/requirements.txt" > /dev/null +pip install "${script_dir}/" > /dev/null publish_active_windows.py "${@}"