def is_installed(): ''' Return whether or not xauth is installed. ''' try: p = EasyProcess(['xauth', '-V']) p.enable_stdout_log = False p.enable_stderr_log = False p.call() except Exception: return False else: return True
def is_installed(): """ Return whether or not xauth is installed. """ try: p = EasyProcess(["xauth", "-V"]) p.enable_stdout_log = False p.enable_stderr_log = False p.call() except Exception: return False else: return True
def check_installed(cls): p = EasyProcess([PROGRAM, '-help']) p.enable_stdout_log = False p.enable_stderr_log = False p.call()