From 79adf18d9ab9f33f13b3c5c7de8c189fc75a2e4e Mon Sep 17 00:00:00 2001 From: yage Date: Sun, 18 Feb 2024 02:35:10 -0700 Subject: [PATCH] fix bug with virtualenv loading --- zsh/lib/scwrypts/virtualenv.module.zsh | 4 ---- zsh/scwrypts/virtualenv/refresh | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/zsh/lib/scwrypts/virtualenv.module.zsh b/zsh/lib/scwrypts/virtualenv.module.zsh index 3d8ac94..223cdf0 100644 --- a/zsh/lib/scwrypts/virtualenv.module.zsh +++ b/zsh/lib/scwrypts/virtualenv.module.zsh @@ -85,8 +85,6 @@ CREATE_VIRTUALENV__scwrypts__py() { DEPENDENCIES=(virtualenv) CHECK_ENVIRONMENT || return 1 - local VIRTUALENV_PATH="$1" - STATUS 'creating python virtualenv' local PY PYTHON for PY in $(echo $SCWRYPTS_PREFERRED_PYTHON_VERSIONS__scwrypts) @@ -141,8 +139,6 @@ CREATE_VIRTUALENV__scwrypts__zx() { DEPENDENCIES=(nodeenv) CHECK_ENVIRONMENT || return 1 - local VIRTUALENV_PATH="$1" - STATUS 'setting up nodeenv' nodeenv $VIRTUALENV_PATH --node=$SCWRYPTS_NODE_VERSION__scwrypts \ && SUCCESS 'node virtualenv created' \ diff --git a/zsh/scwrypts/virtualenv/refresh b/zsh/scwrypts/virtualenv/refresh index 2a09161..6a94698 100755 --- a/zsh/scwrypts/virtualenv/refresh +++ b/zsh/scwrypts/virtualenv/refresh @@ -18,7 +18,7 @@ MAIN() { REMINDER " this will permanently remove all artifacts for the scwrypts $ENV_TYPE environment - (safe unless you have put something important in $(GET_VIRTUALENV_PATH $ENV_GROUP $ENV_TYPE)) + (safe unless you have put something important in $(_VIRTUALENV__GET_PATH $ENV_GROUP $ENV_TYPE)) " Yn "drop and recreate $ENV_TYPE virtual environment?" || ABORT