Skip to content

Commit

Permalink
Change activate.patch (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Nov 29, 2023
2 parents 58cf4a9 + d19bcf9 commit 1ac6711
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions build_assets/activate.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
--- activate.orig 2023-11-01 16:36:41.273318317 +0000
+++ activate 2023-11-01 16:29:45.610264478 +0000
@@ -27,6 +27,17 @@
@@ -27,6 +27,10 @@
unset _OLD_VIRTUAL_PS1
fi

+ # Unset exported dev-env variables
+ if [ ! -z "${DEVENV_PATH}" ] ; then
+ pushd ${DEVENV_PATH} > /dev/null
+ unset `make env | awk -F= '{print $1}'`
+ popd > /dev/null
+ fi
+

+ # Unset external env variables
+ declare -f env_deactivate > /dev/null && env_deactivate
+ declare -f venv_deactivate > /dev/null && venv_deactivate
Expand Down

0 comments on commit 1ac6711

Please sign in to comment.