summaryrefslogtreecommitdiffstats
path: root/gamechestcli/gamechest/paths.py
diff options
context:
space:
mode:
Diffstat (limited to 'gamechestcli/gamechest/paths.py')
-rw-r--r--gamechestcli/gamechest/paths.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/gamechestcli/gamechest/paths.py b/gamechestcli/gamechest/paths.py
new file mode 100644
index 0000000..53cafe0
--- /dev/null
+++ b/gamechestcli/gamechest/paths.py
@@ -0,0 +1,23 @@
+import os
+
+from xdg import xdg_data_home
+
+from . import consts
+
+
+def get_games_database_path():
+ # TODO: unhardcode this
+ #return os.path.expanduser('~/games/.saves/gamedata.yaml')
+ return os.path.expanduser('~/game-saves/gamedata.yaml')
+
+
+def get_remote_basedir():
+ # TODO: unhardcode this
+ return 'jibril:/storage/games'
+
+
+def get_games_install_basedir():
+ games_install_path = xdg_data_home() / consts.XDG_RESOURCE_NAME / 'games'
+ games_install_path.mkdir(parents=True, exist_ok=True)
+ return games_install_path
+