From c948c75d36bad90779075d3527eff83a436da150 Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 30 Mar 2021 17:08:03 -0400 Subject: [PATCH] Fix ~/qrc: folder created on start in release mode --- src/backend/user_files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/user_files.py b/src/backend/user_files.py index b2957f28..2a627c96 100644 --- a/src/backend/user_files.py +++ b/src/backend/user_files.py @@ -168,7 +168,8 @@ class UserFile: async def _start_writer(self) -> None: """Disk writer coroutine, update the file with a 1 second cooldown.""" - self.write_path.parent.mkdir(parents=True, exist_ok=True) + if self.write_path.parts[0] == "qrc:": + return while True: await asyncio.sleep(1)