diff options
author | mathieui <mathieui@mathieui.net> | 2018-07-21 17:09:52 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-07-21 17:09:52 +0200 |
commit | ea2d76864da2448152428a62fe5c7daaea6ab0d3 (patch) | |
tree | 7ac279bb9b1efbe6025a0435d4a121f11080fcb0 /poezio/xdg.py | |
parent | 3ec153a6a01faca5445bb7c21e0d427bb5096320 (diff) | |
download | poezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.tar.gz poezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.tar.bz2 poezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.tar.xz poezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.zip |
yapf -rip
Diffstat (limited to 'poezio/xdg.py')
-rw-r--r-- | poezio/xdg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/xdg.py b/poezio/xdg.py index 79dc24a9..e4b336a5 100644 --- a/poezio/xdg.py +++ b/poezio/xdg.py @@ -4,7 +4,6 @@ # # Poezio is free software: you can redistribute it and/or modify # it under the terms of the zlib license. See the COPYING file. - """ Implements the XDG base directory specification. @@ -21,6 +20,7 @@ DEFAULT_PATHS = { 'XDG_CACHE_HOME': Path.home() / '.cache', } + def _get_directory(variable: str): """ returns the default configuration directory path @@ -34,6 +34,7 @@ def _get_directory(variable: str): return xdg_path / 'poezio' return DEFAULT_PATHS[variable] / 'poezio' + CONFIG_HOME = _get_directory('XDG_CONFIG_HOME') DATA_HOME = _get_directory('XDG_DATA_HOME') CACHE_HOME = _get_directory('XDG_CACHE_HOME') |