summaryrefslogtreecommitdiff
path: root/scripts/p7s/appdirs.py
blob: 9ff0ca80699435927d0fa60bff154e45832a411b (plain)
1
2
3
4
5
6
7
8
9
10
11
import appdirs
import pathlib


APPDIRS = appdirs.AppDirs("p7s", "alex@pdp7.net")


def user_cache_dir():
    r = pathlib.Path(APPDIRS.user_cache_dir)
    r.mkdir(parents=True, exist_ok=True)
    return r