summaryrefslogtreecommitdiff
path: root/poezio/theming.py
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2022-08-21 22:54:52 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2022-08-23 11:44:11 +0200
commit62481f13295ad6b96648e608d4d93029864c8eef (patch)
treecc045510333cd278c9bfe58d1b8c17292a5c970f /poezio/theming.py
parent10cc67e6c78ca37508ba30cba42baa68c8fff5a3 (diff)
downloadpoezio-62481f13295ad6b96648e608d4d93029864c8eef.tar.gz
poezio-62481f13295ad6b96648e608d4d93029864c8eef.tar.bz2
poezio-62481f13295ad6b96648e608d4d93029864c8eef.tar.xz
poezio-62481f13295ad6b96648e608d4d93029864c8eef.zip
roezio: migrate poezio/xdg.pyroezio
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'poezio/theming.py')
-rwxr-xr-xpoezio/theming.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/theming.py b/poezio/theming.py
index 446455e0..319440ec 100755
--- a/poezio/theming.py
+++ b/poezio/theming.py
@@ -77,7 +77,7 @@ from typing import Dict, List, Union, Tuple, Optional, cast
from pathlib import Path
from os import path
from datetime import datetime
-from poezio import colors, xdg, libpoezio
+from poezio import colors, libpoezio
from importlib import machinery
finder = machinery.PathFinder()
@@ -450,7 +450,7 @@ def update_themes_dir(option: Optional[str] = None,
# import from the user-defined prefs
themes_dir_str = config.getstr('themes_dir')
themes_dir = Path(themes_dir_str).expanduser(
- ) if themes_dir_str else xdg.DATA_HOME / 'themes'
+ ) if themes_dir_str else libpoezio.XDG.data_dir / 'themes'
try:
themes_dir.mkdir(parents=True, exist_ok=True)
except OSError: