1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

Add 'osc.util.xdg' module for handling XDG paths

This commit is contained in:
Daniel Mach 2023-08-22 15:08:09 +02:00
parent b9014ccd56
commit 54d1884e1d

6
osc/util/xdg.py Normal file
View File

@ -0,0 +1,6 @@
import os
XDG_DATA_HOME = os.environ.get("XDG_DATA_HOME", "~/.local/share")
XDG_CONFIG_HOME = os.environ.get("XDG_CONFIG_HOME", "~/.config")
XDG_STATE_HOME = os.environ.get("XDG_STATE_HOME", "~/.local/state")
XDG_CACHE_HOME = os.environ.get("XDG_CACHE_HOME", "~/.cache")