From 282be23c8e69b2c2e040a5a6607b6d2e846dc7cb Mon Sep 17 00:00:00 2001 From: rdbende Date: Mon, 6 Nov 2023 18:44:15 +0100 Subject: [PATCH] Now what? --- porcupine/_ipc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/porcupine/_ipc.py b/porcupine/_ipc.py index e39e68b7c..8df33f49d 100644 --- a/porcupine/_ipc.py +++ b/porcupine/_ipc.py @@ -58,7 +58,7 @@ def start_session() -> tuple[connection.Listener, queue.Queue[Any]]: message_queue: queue.Queue[Any] = queue.Queue() listener = connection.Listener() - _ADDRESS_FILE.touch(parents=True) + _ADDRESS_FILE.parent.mkdir(parents=True, exist_ok=True) with _ADDRESS_FILE.open("w") as file: print(listener.address, file=file)