Looking on the tox global settings
section from tox documentation, the .tox
directory which is working dir, is created in directory where tox.ini
is located:
toxworkdir={toxinidir}/.tox(PATH)
Directory for tox to generate its environments into, will be created if
it does not exist.
Is there a way to change this location?
For instance, I have a project as follows:
awesome_project/
├── main.py
├── src
│ └── app.py
└── tox.ini
I want to execute tox.ini
from awesome_project
dir, but want to write .tox
dir in /tmp/.tox
not in awesome_project/.tox
.
Thanks for help.
{toxinidir}/.tox
is just a default value that you can change in tox.ini
:
[tox]
toxworkdir=/tmp/.tox