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 10
10
- Drops support for Python 2.4 and 2.5. The tools may still work,
11
11
but I no longer have a development environment set up for testing
12
12
them, so I do not officially support them.
13
+ - Shortcut initialization if it has run before.
13
14
14
15
2.10.1
15
16
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ oneTimeTearDown() {
19
19
setUp () {
20
20
echo
21
21
rm -f " $test_dir /catch_output"
22
+ unset VIRTUALENVWRAPPER_INITIALIZED
22
23
}
23
24
24
25
test_virtualenvwrapper_initialize () {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ oneTimeTearDown() {
22
22
setUp () {
23
23
echo
24
24
rm -f " $test_dir /catch_output"
25
+ unset VIRTUALENVWRAPPER_INITIALIZED
25
26
}
26
27
27
28
test_initialize () {
Original file line number Diff line number Diff line change @@ -204,6 +204,10 @@ function virtualenvwrapper_setup_tab_completion {
204
204
205
205
# Set up virtualenvwrapper properly
206
206
function virtualenvwrapper_initialize {
207
+ if [ ! -z " $VIRTUALENVWRAPPER_INITIALIZED " ]
208
+ then
209
+ return 0
210
+ fi
207
211
export WORKON_HOME=" $( virtualenvwrapper_derive_workon_home) "
208
212
209
213
virtualenvwrapper_verify_workon_home -q || return 1
@@ -229,6 +233,9 @@ function virtualenvwrapper_initialize {
229
233
230
234
virtualenvwrapper_setup_tab_completion
231
235
236
+ export VIRTUALENVWRAPPER_INITIALIZED=1
237
+
238
+ return 0
232
239
}
233
240
234
241
You can’t perform that action at this time.
0 commit comments