summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoshpere <devnull@localhost>2016-04-14 11:59:37 -0700
committerjoshpere <devnull@localhost>2016-04-14 11:59:37 -0700
commitb47956354960dcae6de72300cfa8d9d341d43f2b (patch)
tree7124456aa2df01cb711abcdf3262e30ffd08cf6c
parentfc5142bb0bd8ae54a9bcaaaf0946da6c9e1a9a02 (diff)
downloadtox-b47956354960dcae6de72300cfa8d9d341d43f2b.tar.gz
Cleanup: Rename local variable for clarity
-rw-r--r--tox/venv.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/tox/venv.py b/tox/venv.py
index 2e46098..35a50e5 100644
--- a/tox/venv.py
+++ b/tox/venv.py
@@ -88,29 +88,29 @@ class VirtualEnv(object):
if os.path.isabs(name):
return name
if os.path.split(name)[0] == ".":
- p = cwd.join(name)
- if p.check():
- return str(p)
- p = None
+ path = cwd.join(name)
+ if path.check():
+ return str(path)
+ path = None
if venv:
- p = py.path.local.sysfind(name, paths=[self.envconfig.envbindir])
- if p is not None:
- return p
- p = py.path.local.sysfind(name)
- if p is None:
+ path = py.path.local.sysfind(name, paths=[self.envconfig.envbindir])
+ if path is not None:
+ return path
+ path = py.path.local.sysfind(name)
+ if path is None:
raise tox.exception.InvocationError(
"could not find executable %r" % (name,))
- # p is not found in virtualenv script/bin dir
+ # path is not found in virtualenv script/bin dir
if venv:
- if not self.is_allowed_external(p):
+ if not self.is_allowed_external(path):
self.session.report.warning(
"test command found but not installed in testenv\n"
" cmd: %s\n"
" env: %s\n"
"Maybe you forgot to specify a dependency? "
"See also the whitelist_externals envconfig setting." % (
- p, self.envconfig.envdir))
- return str(p) # will not be rewritten for reporting
+ path, self.envconfig.envdir))
+ return str(path) # will not be rewritten for reporting
def is_allowed_external(self, p):
tryadd = [""]