From 23281976dafc1f5afc1baa83a961ef0e661ac276 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 18 Jul 2019 13:02:29 +1000 Subject: [PATCH] tuhigui: share the config path with tuhi The tuhigui.ini settings file where we store the orientation of the device is now the same config directory tuhi dumps its data in. The svgs are in an svg subdirectory, just to make them easier to find. --- tuhigui/config.py | 2 +- tuhigui/svg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tuhigui/config.py b/tuhigui/config.py index b9b291e..a32ca41 100644 --- a/tuhigui/config.py +++ b/tuhigui/config.py @@ -22,7 +22,7 @@ from pathlib import Path logger = logging.getLogger('tuhi.gui.config') -ROOT_PATH = Path(xdg.BaseDirectory.xdg_data_home, 'tuhigui') +ROOT_PATH = Path(xdg.BaseDirectory.xdg_data_home, 'tuhi') class Config(GObject.Object): diff --git a/tuhigui/svg.py b/tuhigui/svg.py index f59c425..64dd386 100644 --- a/tuhigui/svg.py +++ b/tuhigui/svg.py @@ -17,7 +17,7 @@ import xdg.BaseDirectory import svgwrite import os -DATA_PATH = os.path.join(xdg.BaseDirectory.xdg_data_home, 'tuhigui') +DATA_PATH = os.path.join(xdg.BaseDirectory.xdg_data_home, 'tuhi', 'svg') class JsonSvg(GObject.Object):