From fd5c783feff5ecd304fd27149a2b6c2942758b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lidwin?= Date: Sat, 30 May 2026 13:29:53 +0200 Subject: [PATCH] cli: remove redundant if statement (#762) --- legendary/cli.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/legendary/cli.py b/legendary/cli.py index b3006d0..d88fae2 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -717,10 +717,7 @@ class LegendaryCLI: if params.environment: logger.debug('Environment overrides: {}'.format(', '.join( f'{k}={v}' for k, v in params.environment.items()))) - use_shell = False - if os.name == 'nt': - use_shell = True - subprocess.Popen(full_params, cwd=params.working_directory, env=full_env, shell=use_shell) + subprocess.Popen(full_params, cwd=params.working_directory, env=full_env, shell=os.name == 'nt') def _launch_third_party(self, args): game = self.core.get_game(app_name=args.app_name)