summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/index.txt2
-rwxr-xr-xvirtualenv.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/index.txt b/docs/index.txt
index 05fa91d..0fe219b 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -322,6 +322,8 @@ svn trunk
* Sometimes Cygwin seems to leave ``.exe`` off ``sys.executable``; a
workaround is added.
+* Fix ``--python`` option.
+
* Fixed handling of Jython environments that use a
jython-complete.jar.
diff --git a/virtualenv.py b/virtualenv.py
index 91aa598..50536ed 100755
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -374,7 +374,7 @@ def main():
file = __file__
if file.endswith('.pyc'):
file = file[:-1]
- os.execvpe(interpreter, [interpreter, __file__] + sys.argv[1:], env)
+ os.execvpe(interpreter, [interpreter, file] + sys.argv[1:], env)
if not args:
print 'You must provide a DEST_DIR'