Skip to content

Commit a639da7

Browse files
committed
default chdir to tmpdir to avoid virtualenv issues
1 parent 8c353d0 commit a639da7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packaging/language/pip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ def main():
258258
if state == 'latest' and version is not None:
259259
module.fail_json(msg='version is incompatible with state=latest')
260260

261+
if chdir is None:
262+
chdir = tempfile.gettempdir()
263+
261264
err = ''
262265
out = ''
263266

0 commit comments

Comments
 (0)