def keosd_start(): if not config.keosd_wallet_dir(raise_error=False): utils.spawn([config.keosd_exe()]) while True: time.sleep(1) if config.keosd_wallet_dir(raise_error=False): break
def keosd_start(): if not config.keosd_wallet_dir(raise_error=False): subprocess.Popen(config.keosd_exe(), stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, shell=True) while True: time.sleep(1) if config.keosd_wallet_dir(raise_error=False): break
def kill_keosd(): kill(os.path.splitext(os.path.basename(config.keosd_exe()))[0])