From e8a3a3ec8d1915746d88355c9c1c057c5d01323c Mon Sep 17 00:00:00 2001 From: derrod Date: Wed, 8 Sep 2021 10:27:26 +0200 Subject: [PATCH] [cli] Use pyinstaller check rather than OS name only --- legendary/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index cacfd71..ae217df 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -22,6 +22,7 @@ from legendary.models.exceptions import InvalidCredentialsError from legendary.models.game import SaveGameStatus, VerifyResult from legendary.utils.cli import get_boolean_choice, sdl_prompt from legendary.utils.custom_parser import AliasedSubParsersAction +from legendary.utils.env import is_windows_or_pyi from legendary.utils.lfs import validate_files from legendary.utils.selective_dl import get_sdl_appname from legendary.utils.wine_helpers import read_registry, get_shell_folders @@ -1480,7 +1481,7 @@ def main(): print(f'- Release summary:\n{update_info["summary"]}\n- Release URL: {update_info["gh_url"]}') if update_info['critical']: print('! This update is recommended as it fixes major issues.') - if os.name != 'nt': + if not is_windows_or_pyi(): print('If you installed legendary via a package manager it may ' 'take some time for the update to become available.')