From 797598322de8073029a546e8d32f033ed3440428 Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 11 Dec 2021 16:23:12 +0100 Subject: [PATCH] [cli] Fix checking for game executable on import --- legendary/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index f61649c..4ef4df8 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -1141,7 +1141,7 @@ class LegendaryCLI: logger.info(f'DLC "{game.app_title}" ("{game.app_name}") does not appear to be installed.') return - if not game.is_dlc and not os.path.exists(exe_path and not args.disable_check): + if not game.is_dlc and not os.path.exists(exe_path) and not args.disable_check: logger.error(f'Game executable could not be found at "{exe_path}", ' f'please verify that the specified path is correct.') return