(prog)
Check if program is installed and pathed properly
Check if program is installed and pathed properly
Check if program is installed and pathed properly
def check_program(prog):
    """Check if program is installed and pathed properly"""
    tmp = init_app('which {0}'.format(prog))
    if len(tmp) > 0 and '/' in tmp:
        return True
    else:
        return False
def check_program ( prog ) : tmp = init_app ( 'which {0}' . format ( prog ) ) if len ( tmp ) > 0 and '/' in tmp : return True else : return False