This module makes it easy for Python programs to use FHS paths and XDG basedir paths. It allows reading and writing configuration, data, cache, log and spool files, and using lock files.
wijnen/python-fhs
Functions for easily using config and data files following the xdg basedir spec
Python