mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[cli] Actually store user-provided prefix path
This was assigning to a local variable, only ever used in the `if` block
This commit is contained in:
parent
20b121bdb9
commit
bd2e7ca0cd
|
@ -104,11 +104,11 @@ class LegendaryCLI:
|
||||||
|
|
||||||
if not egl_wine_pfx:
|
if not egl_wine_pfx:
|
||||||
logger.info('Please enter the path to the Wine prefix that has EGL installed')
|
logger.info('Please enter the path to the Wine prefix that has EGL installed')
|
||||||
wine_pfx = input('Path [empty input to quit]: ').strip()
|
egl_wine_pfx = input('Path [empty input to quit]: ').strip()
|
||||||
if not wine_pfx:
|
if not egl_wine_pfx:
|
||||||
print('Empty input, quitting...')
|
print('Empty input, quitting...')
|
||||||
exit(0)
|
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)!')
|
print('Path is invalid (does not exist)!')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue