Docstring.

llvm-svn: 130253
This commit is contained in:
Johnny Chen 2011-04-26 23:10:15 +00:00
parent 6424b7d272
commit 35ec67464f
1 changed files with 2 additions and 2 deletions

View File

@ -11,11 +11,11 @@ import StringIO
# ===================================================
def is_exe(fpath):
"""Return true if fpath is an executable."""
"""Returns True if fpath is an executable."""
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
def which(program):
"""Find the full path to a program; return None otherwise."""
"""Returns the full path to a program; None otherwise."""
fpath, fname = os.path.split(program)
if fpath:
if is_exe(program):