summaryrefslogtreecommitdiffstats
path: root/gamechestcli
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2026-04-19 11:49:09 +0200
committervg <vgm+dev@devys.org>2026-04-19 11:49:09 +0200
commitd349cdff9bee7f90b81e9d1f12c4c9c2f2e3692f (patch)
tree0baf4dfa89673b8ec5b872a5291c6d4396950337 /gamechestcli
parent81dd33cb91e0622e19d369671745db7c298f3a6c (diff)
downloadgamechest-d349cdff9bee7f90b81e9d1f12c4c9c2f2e3692f.tar.gz
gamechest-d349cdff9bee7f90b81e9d1f12c4c9c2f2e3692f.tar.bz2
gamechest-d349cdff9bee7f90b81e9d1f12c4c9c2f2e3692f.zip
fix list() to list comprehension after lint hintwip
Diffstat (limited to 'gamechestcli')
-rw-r--r--gamechestcli/src/gamechest/cliactions/run.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gamechestcli/src/gamechest/cliactions/run.py b/gamechestcli/src/gamechest/cliactions/run.py
index 142b0d8..a7a421f 100644
--- a/gamechestcli/src/gamechest/cliactions/run.py
+++ b/gamechestcli/src/gamechest/cliactions/run.py
@@ -16,8 +16,7 @@ def run_game(game_db, profile_id, game_info):
game_dir_id = game_info.get('game_dir_id_override', game_info['id'])
game_dir = config.get_games_install_basedir() / game_dir_id
# note: glob('*/') globs regular files too, thus I filter on is_dir.
- game_dir = list(item
- for item in game_dir.glob('*') if item.is_dir())[-1]
+ game_dir = [item for item in game_dir.glob('*') if item.is_dir()][-1]
game_dir = Path(game_dir)
#tools_bin_path = config.get_games_saves_tools_bin_path()
#new_env = dict(os.environ)