Пример #1
0
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
Пример #2
0
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
Пример #3
0
def kill_keosd():
    kill(os.path.splitext(os.path.basename(config.keosd_exe()))[0])