dax/dax_tools_utils.py
def is_python_file(filepath):
    """
    Check if a file is a python file using bash command file

    :param filepath: path to the file to test
    :return: True if it's a python file, False otherwise
    """
    file_call = '''file {fpath}'''.format(fpath=filepath)
    output = sb.check_output(file_call.split())
    if 'python' in output.lower():
        return True

    return False

    Check if a file is a python file using bash command file

    :param filepath: path to the file to test
    :return: True if it's a python file, False otherwise
    
Check if a file is a python file using bash command file
Check if a file is a python file using bash command file
def is_python_file(filepath):
    file_call = '''file {fpath}'''.format(fpath=filepath)
    output = sb.check_output(file_call.split())
    if 'python' in output.lower():
        return True
    return False
def is_python_file ( filepath ) : file_call = '''file {fpath}''' . format ( fpath = filepath ) output = sb . check_output ( file_call . split ( ) ) if 'python' in output . lower ( ) : return True return False
Check if a file is a python file using bash command file
Check if a file is a python file using bash command file
"""
    Check if a file is a python file using bash command file

    :param filepath: path to the file to test
    :return: True if it's a python file, False otherwise
    """
True if it's a python file, False otherwise
True if it ' s a python file False otherwise
filepath
path to the file to test
path to the file to test