Skip to content

Commit 4428140

Browse files
committed
fix argument processing in mkvirtualenv
1 parent 9cc0a3c commit 4428140

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ For more details, refer to the column I wrote for the May 2008 issue of Python M
6969
=======
7070
Updates
7171
=======
72+
73+
1.8.1
74+
- Corrected a problem with change to mkvirtualenv that lead to release 1.8 by using an alternate fix proposed by James in comments on release 1.4.
75+
7276
1.8
7377
- Fix for processing the argument list in mkvirtualenv from jorgevargas (BitBucket issue #1)
7478

virtualenvwrapper_bashrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ function verify_active_environment () {
6464
# (where the options are passed directly to virtualenv)
6565
#
6666
function mkvirtualenv () {
67+
eval "envname=\$$#"
6768
verify_workon_home
68-
(cd "$WORKON_HOME"; virtualenv "$@")
69-
workon "$_"
69+
(cd "$WORKON_HOME"; virtualenv "$@")
70+
workon "$envname"
7071
}
7172

7273
# Remove an environment, in the WORKON_HOME.

0 commit comments

Comments
 (0)