diff options
author | Steven Myint <hg@stevenmyint.com> | 2014-09-01 08:12:16 -0700 |
---|---|---|
committer | Steven Myint <hg@stevenmyint.com> | 2014-09-01 08:12:16 -0700 |
commit | c0af5a5eb243d3eb0b4cdd8e452e00838c187010 (patch) | |
tree | 1889bbe5162ee9cff340be995b8ee7f7965be1ef | |
parent | 4c5e42a3dddc75f38374e9fa68e6d6f2798ae081 (diff) | |
download | tox-c0af5a5eb243d3eb0b4cdd8e452e00838c187010.tar.gz |
Fix "__PYVENV_LAUNCHER__" problem
This resolves the use of the non-virtualenv Python executable.
This fixes #171.
-rw-r--r-- | tox/_venv.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tox/_venv.py b/tox/_venv.py index d5df526..fea2f0c 100644 --- a/tox/_venv.py +++ b/tox/_venv.py @@ -272,7 +272,8 @@ class VirtualEnv(object): if '{opts}' in argv: i = argv.index('{opts}') argv[i:i+1] = list(options) - for x in ('PIP_RESPECT_VIRTUALENV', 'PIP_REQUIRE_VIRTUALENV'): + for x in ('PIP_RESPECT_VIRTUALENV', 'PIP_REQUIRE_VIRTUALENV', + '__PYVENV_LAUNCHER__'): try: del os.environ[x] except KeyError: |