From ea2d76864da2448152428a62fe5c7daaea6ab0d3 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 21 Jul 2018 17:09:52 +0200 Subject: yapf -rip --- poezio/xdg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'poezio/xdg.py') 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') -- cgit v1.2.3