mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Check for runner path existence (Closes #3247)
This commit is contained in:
parent
ce5afbca27
commit
0bd34a5b05
|
@ -151,9 +151,12 @@ class RunnerInstallDialog(Dialog):
|
|||
|
||||
def get_installed_versions(self):
|
||||
"""List versions available locally"""
|
||||
runner_path = os.path.join(settings.RUNNER_DIR, self.runner)
|
||||
if not os.path.exists(runner_path):
|
||||
return {}
|
||||
return {
|
||||
tuple(p.rsplit("-", 1))
|
||||
for p in os.listdir(os.path.join(settings.RUNNER_DIR, self.runner))
|
||||
for p in os.listdir(runner_path)
|
||||
if "-" in p
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue