projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lit: Util.which(): Use os.path.isfile() instead of os.path.exists(), or it hits to...
[oota-llvm.git]
/
utils
/
lit
/
lit
/
Util.py
diff --git
a/utils/lit/lit/Util.py
b/utils/lit/lit/Util.py
index 226e453f2859f4a419ed3465eb33b208e37aaffa..f29480900ce76ca519ff720add0e93b93a9bacd9 100644
(file)
--- a/
utils/lit/lit/Util.py
+++ b/
utils/lit/lit/Util.py
@@
-56,7
+56,7
@@
def which(command, paths = None):
paths = os.environ.get('PATH','')
# Check for absolute match first.
- if os.path.
exists
(command):
+ if os.path.
isfile
(command):
return command
# Would be nice if Python had a lib function for this.