summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-08-15 14:42:03 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-08-15 14:42:03 -0400
commit4eb5b32f8d8bb1e20907028a516346e2b1901391 (patch)
treee64d84f6e8da18720ab0ba38cde2930d58ff1419
parent6f205904ca63a91946b862068278a51dddb36cf4 (diff)
downloadpython-setuptools-git-4eb5b32f8d8bb1e20907028a516346e2b1901391.tar.gz
Replace hard-coded tox working dir with the environment variable, honoring non-standard working directories.
-rw-r--r--tools/tox_pip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tox_pip.py b/tools/tox_pip.py
index 9fe4f905..9e1a1e4a 100644
--- a/tools/tox_pip.py
+++ b/tools/tox_pip.py
@@ -12,7 +12,7 @@ def remove_setuptools():
cmd = [sys.executable, '-m', 'pip', 'uninstall', '-y', 'setuptools']
# set cwd to something other than '.' to avoid detecting
# '.' as the installed package.
- subprocess.check_call(cmd, cwd='.tox')
+ subprocess.check_call(cmd, cwd=os.environ['TOX_WORK_DIR'])
def bootstrap():