diff options
author | vg <vgm+dev@devys.org> | 2022-09-20 09:51:35 +0200 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2022-09-20 09:51:35 +0200 |
commit | e7ec567e5754c07eea400401bf57be6da99b71ab (patch) | |
tree | 22f6858bf59185bc700e5f1b44b0798122479232 /gamechestcli | |
parent | 1e61836d565ee7433894b6fd8444a5bf930891f1 (diff) | |
download | gamechest-e7ec567e5754c07eea400401bf57be6da99b71ab.tar.gz gamechest-e7ec567e5754c07eea400401bf57be6da99b71ab.tar.bz2 gamechest-e7ec567e5754c07eea400401bf57be6da99b71ab.zip |
git-sync on seele
Diffstat (limited to 'gamechestcli')
-rw-r--r-- | gamechestcli/gamechest/gamedb.py | 3 |
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) |