summaryrefslogtreecommitdiffstats
path: root/gamechestcli/gamechest/gamedb.py
diff options
context:
space:
mode:
Diffstat (limited to 'gamechestcli/gamechest/gamedb.py')
-rw-r--r--gamechestcli/gamechest/gamedb.py10
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],