diff options
Diffstat (limited to 'gamechestcli/gamechest/paths.py')
-rw-r--r-- | gamechestcli/gamechest/paths.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/gamechestcli/gamechest/paths.py b/gamechestcli/gamechest/paths.py deleted file mode 100644 index 5e009a6..0000000 --- a/gamechestcli/gamechest/paths.py +++ /dev/null @@ -1,36 +0,0 @@ -import os -from pathlib import Path - -from xdg import xdg_data_home - -from . import consts - - -def get_remote_basedir(): - # TODO: unhardcode this - return 'jibril:/storage/games' - - -def get_games_saves_path(): - # TODO: unhardcode this - 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(): - games_install_path = xdg_data_home() / consts.XDG_RESOURCE_NAME / 'games' - games_install_path.mkdir(parents=True, exist_ok=True) - return games_install_path - |