diff options
author | vg <vgm+dev@devys.org> | 2022-09-19 18:30:16 +0200 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2022-09-19 18:30:16 +0200 |
commit | 7b656127e3fc0139f13820ddbffc3840924d7dcb (patch) | |
tree | b73074e268d130013257b8c35ef6e0e16ca5ee3a /gamechestcli/gamechest/gamedb.py | |
parent | 21908c97c1e897554751070d08e2b35694529bc0 (diff) | |
download | gamechest-7b656127e3fc0139f13820ddbffc3840924d7dcb.tar.gz gamechest-7b656127e3fc0139f13820ddbffc3840924d7dcb.tar.bz2 gamechest-7b656127e3fc0139f13820ddbffc3840924d7dcb.zip |
git-sync on seele
Diffstat (limited to 'gamechestcli/gamechest/gamedb.py')
-rw-r--r-- | gamechestcli/gamechest/gamedb.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gamechestcli/gamechest/gamedb.py b/gamechestcli/gamechest/gamedb.py index 2000c52..99d3c9a 100644 --- a/gamechestcli/gamechest/gamedb.py +++ b/gamechestcli/gamechest/gamedb.py @@ -1,12 +1,12 @@ import yaml -from . import paths +from .gameconfig import config class GameDB: def __init__(self): - database_path = paths.get_games_database_path() + database_path = config.get_games_database_path() with open(database_path, 'rb') as fdin: self.db = yaml.safe_load(fdin) self.last_game_info = None @@ -25,12 +25,12 @@ class GameDB: game_mods = game_info.get('mods', []) game_mods += ['locked-run-profiledir'] - game_dir = paths.get_games_install_basedir() / game_info['id'] + game_dir = config.get_games_install_basedir() / game_info['id'] # note: glob('*/') globs regular files too, thus I filter on is_dir. game_dir = next(item for item in game_dir.glob('*') if item.is_dir()) - tools_bin_path = paths.get_games_saves_tools_bin_path() - profile_dir = paths.get_profile_dir(profile_id) + tools_bin_path = config.get_games_saves_tools_bin_path() + profile_dir = config.get_profile_dir(profile_id) command = [ *[f'{tools_bin_path}/mod-{item}' for item in game_mods], |