From bd2e7ca0cd2e093b8ba57061c5a03a74b82a0069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathis=20Dr=C3=B6ge?= Date: Thu, 10 Aug 2023 11:43:20 +0200 Subject: [PATCH] [cli] Actually store user-provided prefix path This was assigning to a local variable, only ever used in the `if` block --- legendary/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legendary/cli.py b/legendary/cli.py index d9239aa..e8009f9 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -104,11 +104,11 @@ class LegendaryCLI: if not egl_wine_pfx: logger.info('Please enter the path to the Wine prefix that has EGL installed') - wine_pfx = input('Path [empty input to quit]: ').strip() - if not wine_pfx: + egl_wine_pfx = input('Path [empty input to quit]: ').strip() + if not egl_wine_pfx: print('Empty input, quitting...') exit(0) - if not os.path.exists(wine_pfx) and os.path.isdir(wine_pfx): + if not os.path.exists(egl_wine_pfx) and os.path.isdir(egl_wine_pfx): print('Path is invalid (does not exist)!') exit(1)