python-clipboard-speaker

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3aa3b1445ecba0660b12b59ca88da32614a93c66
parent a80ac1a505973068a5b173ab7458b10d04bd68e6
Author: Yuval Langer <yuvallangerontheroad@gmail.com>
Date:   Sun, 12 Dec 2021 18:22:33 +0200

Create clipboard-speaker directory before anything else.

Diffstat:
Mclipboard_speaker/clipboard_speaker.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/clipboard_speaker/clipboard_speaker.py b/clipboard_speaker/clipboard_speaker.py @@ -26,6 +26,8 @@ def get_words_per_minute() -> str: def main() -> None: + if not CLIPBOARD_SPEAKER_PATH.exists(): + CLIPBOARD_SPEAKER_PATH.mkdir(mode=500) words_per_minute = get_words_per_minute() try: os.mkfifo(FIFO_FILE_PATH, mode=0o600)