summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Bicking <ianb@colorstudy.com>2008-11-18 11:59:22 -0600
committerIan Bicking <ianb@colorstudy.com>2008-11-18 11:59:22 -0600
commit87e6007800492c5806bdaf7313bca0315e58334a (patch)
tree31d2108c5a84d0902a56499689bf4be568f6ceab
parent0bbbf0939437ef1fac2c98e9472091cea7e6d7d9 (diff)
downloadvirtualenv-1.3.1.tar.gz
[svn r3679] fix --python1.3.1
-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'