mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
forward the exit code
This commit is contained in:
parent
c0db29016b
commit
6829e65034
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user