From 50d6eb02fac7ac69b7dad9ce816bcba385bade2d Mon Sep 17 00:00:00 2001 From: derrod Date: Mon, 1 Jun 2020 08:16:36 +0200 Subject: [PATCH] [cli] Check and save path specified with --egl-manifest-path --- legendary/cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legendary/cli.py b/legendary/cli.py index fafed37..5af08b5 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -850,7 +850,11 @@ class LegendaryCLI: self.core.egl.programdata_path = egl_path self.core.lgd.config.set('Legendary', 'egl_programdata', egl_path) else: + if not os.path.exists(args.egl_manifest_path): + logger.fatal('Path specified via --egl-manifest-path does not exist') + exit(1) self.core.egl.programdata_path = args.egl_manifest_path + self.core.lgd.config.set('Legendary', 'egl_programdata', args.egl_manifest_path) logger.debug(f'Using EGL ProgramData path "{self.core.egl.programdata_path}"...') logger.info('Reading EGL game manifests...')