lit: Util.which(): Use os.path.isfile() instead of os.path.exists(), or it hits to...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 8 Sep 2012 12:07:24 +0000 (12:07 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 8 Sep 2012 12:07:24 +0000 (12:07 +0000)
commit46b4b112d23cdec5d27e2ebf70fc492be3786316
tree7028f0d47c0412db9e063a7cfe67d80497b5f8c7
parentcacd9d6f7974dd54e8b7a758c1fc3b69ec7c5d4b
lit: Util.which(): Use os.path.isfile() instead of os.path.exists(), or it hits to the directory.

For example, which('loop-convert') returns 'loop-convert' when the directory 'loop-convert' exists.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163469 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/Util.py