Trying to use shutil.which()
to determine if git is installed. From the docs, I see which()
on Windows should use PATHEXT to know which file extensions to append when searching. However the following occurs when using the interpreter:
>>> import os
>>> import shutil
>>> os.getenv('PATHEXT')
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;'
>>> shutil.which('git')
>>> shutil.which('git.exe')
'C:\\Program Files\\Git\\cmd\\git.exe'
This is in a virtual environment created using VirtualEnv Wrapper in D:\Envs if that makes any difference.