Skip to content

Commit

Permalink
🐛 Register {temp_dir} as a valid substitution (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Jun 29, 2020
1 parent 6b742d0 commit 1b4c4e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/1609.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed the support for using ``{temp_dir}`` in ``tox.ini`` - by :user:`webknjaz`
3 changes: 2 additions & 1 deletion src/tox/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,8 +1102,9 @@ def line_of_default_to_zero(section, name=None):

reader.addsubstitutions(distdir=config.distdir)
config.distshare = reader.getpath("distshare", dist_share_default)
config.temp_dir = reader.getpath("temp_dir", "{toxworkdir}/.tmp")
reader.addsubstitutions(distshare=config.distshare)
config.temp_dir = reader.getpath("temp_dir", "{toxworkdir}/.tmp")
reader.addsubstitutions(temp_dir=config.temp_dir)
config.sdistsrc = reader.getpath("sdistsrc", None)
config.setupdir = reader.getpath("setupdir", "{toxinidir}")
config.logdir = config.toxworkdir.join("log")
Expand Down

0 comments on commit 1b4c4e5

Please sign in to comment.