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.
This commit is contained in:
parent
cce5099709
commit
23281976da
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue