diff options
author | holger krekel <holger@merlinux.eu> | 2015-05-10 16:12:52 +0200 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2015-05-10 16:12:52 +0200 |
commit | edf60b00a3c59181b7e6b7f1473863d3ebe72272 (patch) | |
tree | 8bf2e28a0ccd0058a3d1e34e6024f5e127301f33 /tox/hookspecs.py | |
parent | 7bbef27b6d602d9f57f46a0a11d84ce050ee0351 (diff) | |
download | tox-edf60b00a3c59181b7e6b7f1473863d3ebe72272.tar.gz |
make tox_get_python_executable hook receive "envconfig" instead of just basepython setting
Diffstat (limited to 'tox/hookspecs.py')
-rw-r--r-- | tox/hookspecs.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tox/hookspecs.py b/tox/hookspecs.py index c9ea948..103bda5 100644 --- a/tox/hookspecs.py +++ b/tox/hookspecs.py @@ -22,7 +22,11 @@ def tox_configure(config): @hookspec(firstresult=True) -def tox_get_python_executable(name): +def tox_get_python_executable(envconfig): """ return a python executable for the given python base name. The first plugin/hook which returns an executable path will determine it. + + ``envconfig`` is the testenv configuration which contains + per-testenv configuration, notably the ``.envname`` and ``.basepython`` + setting. """ |