Skip to content

Commit

Permalink
Read provision_tox_env from config rather than assuming it is unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-ped committed May 23, 2021
1 parent 99930e7 commit 868c59a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tox/config/__init__.py
Expand Up @@ -595,7 +595,10 @@ def tox_addoption(parser):
)

def _set_envdir_from_devenv(testenv_config, value):
if testenv_config.config.option.devenv is not None and testenv_config.envname != ".tox":
if (
testenv_config.config.option.devenv is not None
and testenv_config.envname != testenv_config.config.provision_tox_env
):
return py.path.local(testenv_config.config.option.devenv)
else:
return value
Expand Down

0 comments on commit 868c59a

Please sign in to comment.