Skip to content

Commit 40328c4

Browse files
committed
If TOX_WORK_DIR is indicated in the environment, honor it. Closes tox-dev#20.
1 parent 23dd96f commit 40328c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tox/config/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,8 @@ def line_of_default_to_zero(section, name=None):
11091109
reader.addsubstitutions(toxinidir=config.toxinidir, homedir=config.homedir)
11101110

11111111
if config.option.workdir is None:
1112-
config.toxworkdir = reader.getpath("toxworkdir", "{toxinidir}/.tox")
1112+
default = os.environ.get('TOX_WORK_DIR', "{toxinidir}/.tox")
1113+
config.toxworkdir = reader.getpath("toxworkdir", default)
11131114
else:
11141115
config.toxworkdir = config.toxinidir.join(config.option.workdir, abs=True)
11151116

0 commit comments

Comments
 (0)