diff options
Diffstat (limited to 'gamechestcli/gamechest/paths.py')
-rw-r--r-- | gamechestcli/gamechest/paths.py | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/gamechestcli/gamechest/paths.py b/gamechestcli/gamechest/paths.py index 53cafe0..5e009a6 100644 --- a/gamechestcli/gamechest/paths.py +++ b/gamechestcli/gamechest/paths.py @@ -1,19 +1,32 @@ import os +from pathlib import Path from xdg import xdg_data_home from . import consts -def get_games_database_path(): +def get_remote_basedir(): # TODO: unhardcode this - #return os.path.expanduser('~/games/.saves/gamedata.yaml') - return os.path.expanduser('~/game-saves/gamedata.yaml') + return 'jibril:/storage/games' -def get_remote_basedir(): +def get_games_saves_path(): # TODO: unhardcode this - return 'jibril:/storage/games' + return Path(os.path.expanduser('~/games/.saves')) + #return Path(os.path.expanduser('~/game-saves')) + + +def get_games_saves_tools_bin_path(): + return get_games_saves_path() / 'tools' / 'bin' + + +def get_profile_dir(profile_id): + return get_games_saves_path() / 'profiles' / profile_id + + +def get_games_database_path(): + return get_games_saves_path() / 'gamedata.yaml' def get_games_install_basedir(): |