From 92c6fd860163360237839bd07f9eccf05d31ceb6 Mon Sep 17 00:00:00 2001 From: derrod Date: Mon, 1 Jun 2020 08:13:47 +0200 Subject: [PATCH] [cli] Fix --egl-wine-prefix not setting programdata path --- legendary/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/legendary/cli.py b/legendary/cli.py index bf36d0d..fafed37 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -844,6 +844,11 @@ class LegendaryCLI: exit(1) print('EGL Data path exists but Manifests directory is missing, creating...') os.makedirs(egl_path) + + if not os.listdir(egl_path): + logger.warning('Folder is empty, this may be fine if nothing has been installed yet.') + self.core.egl.programdata_path = egl_path + self.core.lgd.config.set('Legendary', 'egl_programdata', egl_path) else: self.core.egl.programdata_path = args.egl_manifest_path