ucscsdk/ucscgenutils.py
def is_binary_in_path(path, binary):
    """
    Checks if the given binary is available in the specified path.

    Returns:
        True or False (Boolean)
    """
    import os

    def is_exe(fpath):
        return os.path.isfile(fpath) and os.access(fpath, os.X_OK)

    path = path.strip('"')
    exe_file = os.path.join(path, binary)
    if is_exe(exe_file):
        return True
    return False

    Checks if the given binary is available in the specified path.

    Returns:
        True or False (Boolean)
    
Checks if the given binary is available in the specified path.
Checks if the given binary is available in the specified path .
def is_binary_in_path(path, binary):
    import os
    def is_exe(fpath):
        return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
    path = path.strip('"')
    exe_file = os.path.join(path, binary)
    if is_exe(exe_file):
        return True
    return False
def is_binary_in_path ( path , binary ) : import os def is_exe ( fpath ) : return os . path . isfile ( fpath ) and os . access ( fpath , os . X_OK ) path = path . strip ( '"' ) exe_file = os . path . join ( path , binary ) if is_exe ( exe_file ) : return True return False
Checks if the given binary is available in the specified path.
Checks if the given binary is available in the specified path .
"""
    Checks if the given binary is available in the specified path.

    Returns:
        True or False (Boolean)
    """
True or False (Boolean)
True or False ( Boolean )
path
binary