def checkcommand(com):
    proc = subprocess.Popen(
        [
            'which',
            str(com)
        ],
        stderr=subprocess.PIPE,
        stdout=subprocess.PIPE
    )
    return booltostatus(0 > len(proc.stdout.read()))
dataset/ETHPy150Open JasonMillward/Autorippr/classes/testing.py/checkcommand/swapped operands of `>`