tools/diagnose: Avoid shelling out for pwd.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2018-07-18 17:50:16 -04:00 committed by Tim Abbott
parent 09b8ccd510
commit 2d12b5b3d9
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def check_python_version():
@run @run
def pwd(): def pwd():
# type: () -> bool # type: () -> bool
subprocess.check_call('pwd') print(os.getcwd())
return True return True
@run @run