forward the exit code

This commit is contained in:
Kovid Goyal 2023-01-24 18:21:21 +05:30
parent c0db29016b
commit 6829e65034
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -19,8 +19,12 @@ def decode_msg(line: bytes) -> dict:
return ans return ans
def start_worker():
return start_pipe_worker('from calibre_extensions.winspeech import run_main_loop; raise SystemExit(run_main_loop())')
def develop_speech(text='Lucca brazzi sleeps with the fishes'): def develop_speech(text='Lucca brazzi sleeps with the fishes'):
p = start_pipe_worker('from calibre_extensions.winspeech import run_main_loop; run_main_loop()') p = start_worker()
print('\x1b[32mSpeaking', text, '\x1b[39m]]'[:-2], flush=True) print('\x1b[32mSpeaking', text, '\x1b[39m]]'[:-2], flush=True)
q = Queue() q = Queue()