From 8978e91a68cf959f9eb430f2962bc38754026f01 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Tue, 21 Nov 2023 13:09:16 +0000 Subject: [PATCH] Fix confdir passing to workers --- cista/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cista/config.py b/cista/config.py index 83f6abf..6f88213 100644 --- a/cista/config.py +++ b/cista/config.py @@ -3,11 +3,12 @@ from __future__ import annotations import os import secrets import sys +from contextlib import suppress from functools import wraps from hashlib import sha256 from pathlib import Path, PurePath from time import time -from contextlib import suppress + import msgspec @@ -45,7 +46,7 @@ def init_confdir(): home = ( Path(xdg).expanduser() / "cista" if xdg else Path.home() / ".config/cista" ) - if not home.exists() + if not home.is_dir(): home.mkdir(parents=True, exist_ok=True) home.chmod(0o700)