Skip to content

Commit 20215c1

Browse files
blueyedgaborbernat
authored andcommitted
Minor optimization for SectionReader.getpath
1 parent 0fb3b7c commit 20215c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tox/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -985,9 +985,9 @@ def addsubstitutions(self, _posargs=None, **kw):
985985
self.posargs = _posargs
986986

987987
def getpath(self, name, defaultpath, replace=True):
988-
toxinidir = self._subs['toxinidir']
989988
path = self.getstring(name, defaultpath, replace=replace)
990989
if path is not None:
990+
toxinidir = self._subs['toxinidir']
991991
return toxinidir.join(path, abs=True)
992992

993993
def getlist(self, name, sep="\n"):

0 commit comments

Comments
 (0)