summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gamechestcli/gamechest/gamedb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gamechestcli/gamechest/gamedb.py b/gamechestcli/gamechest/gamedb.py
index 98db2d9..6c20b5f 100644
--- a/gamechestcli/gamechest/gamedb.py
+++ b/gamechestcli/gamechest/gamedb.py
@@ -27,7 +27,8 @@ class GameDB:
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())
+ game_dir = list(item
+ for item in game_dir.glob('*') if item.is_dir())[-1]
tools_bin_path = config.get_games_saves_tools_bin_path()
profile_dir = config.get_profile_dir(profile_id)