File tree Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1010 - Drops support for Python 2.4 and 2.5. The tools may still work,
1111 but I no longer have a development environment set up for testing
1212 them, so I do not officially support them.
13+ - Shortcut initialization if it has run before.
1314
14152.10.1
1516
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ oneTimeTearDown() {
1919setUp () {
2020 echo
2121 rm -f " $test_dir /catch_output"
22+ unset VIRTUALENVWRAPPER_INITIALIZED
2223}
2324
2425test_virtualenvwrapper_initialize () {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ oneTimeTearDown() {
2222setUp () {
2323 echo
2424 rm -f " $test_dir /catch_output"
25+ unset VIRTUALENVWRAPPER_INITIALIZED
2526}
2627
2728test_initialize () {
Original file line number Diff line number Diff line change @@ -204,6 +204,10 @@ function virtualenvwrapper_setup_tab_completion {
204204
205205# Set up virtualenvwrapper properly
206206function virtualenvwrapper_initialize {
207+ if [ ! -z " $VIRTUALENVWRAPPER_INITIALIZED " ]
208+ then
209+ return 0
210+ fi
207211 export WORKON_HOME=" $( virtualenvwrapper_derive_workon_home) "
208212
209213 virtualenvwrapper_verify_workon_home -q || return 1
@@ -229,6 +233,9 @@ function virtualenvwrapper_initialize {
229233
230234 virtualenvwrapper_setup_tab_completion
231235
236+ export VIRTUALENVWRAPPER_INITIALIZED=1
237+
238+ return 0
232239}
233240
234241
You can’t perform that action at this time.
0 commit comments