summaryrefslogtreecommitdiffstats
path: root/gamechestcli/gamechest/paths.py
blob: 53cafe0c9f8ec55f399c116c0b9432e3f368ded8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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