From 867a661c9db00fa6cf10c843c68f249e8f6461dc Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 30 May 2020 00:10:50 +0200 Subject: [PATCH] [core] Also remove egl programdata path from config if invalid --- legendary/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legendary/core.py b/legendary/core.py index bcee155..bcff399 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -56,6 +56,8 @@ class LegendaryCore: if self.egl.programdata_path and not os.path.exists(self.egl.programdata_path): self.log.error(f'Config EGL ProgramData path ("{self.egl.programdata_path}") is invalid! Please fix.') self.egl.programdata_path = None + self.lgd.config.remove_option('Legendary', 'egl_programdata', fallback=None) + self.lgd.save_config() self.local_timezone = datetime.now().astimezone().tzinfo self.language_code, self.country_code = ('en', 'US')