mirror of
https://github.com/derrod/legendary.git
synced 2026-07-04 23:44:41 +00:00
cli: remove redundant if statement (#762)
This commit is contained in:
parent
490b577240
commit
fd5c783fef
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue