def _test_pyx():
    """Returns if PyX is correctly installed or not"""
    try:
        with open(os.devnull, 'wb') as devnull:
            r = subprocess.check_call(["pdflatex", "--version"],
                                      stdout=devnull, stderr=subprocess.STDOUT)
    except (subprocess.CalledProcessError, OSError):
        return False
    else:
        return r == 0
def _test_pyx ( ) : try : with open ( os . devnull , 'wb' ) as devnull : r = subprocess . check_call ( [ "pdflatex" , "--version" ] , stdout = devnull , stderr = subprocess . STDOUT ) except ( subprocess . CalledProcessError , OSError ) : return False else : return r == 0
Returns if PyX is correctly installed or not