Various build fixes, cleanup and details #6

Merged
leo merged 34 commits from trace into main 2023-11-21 15:32:49 +00:00
Showing only changes of commit 8978e91a68 - Show all commits

View File

@ -3,11 +3,12 @@ from __future__ import annotations
import os import os
import secrets import secrets
import sys import sys
from contextlib import suppress
from functools import wraps from functools import wraps
from hashlib import sha256 from hashlib import sha256
from pathlib import Path, PurePath from pathlib import Path, PurePath
from time import time from time import time
from contextlib import suppress
import msgspec import msgspec
@ -45,7 +46,7 @@ def init_confdir():
home = ( home = (
Path(xdg).expanduser() / "cista" if xdg else Path.home() / ".config/cista" 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.mkdir(parents=True, exist_ok=True)
home.chmod(0o700) home.chmod(0o700)