From ade9080152519185277cc51d52951c519687fc19 Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 5 Sep 2020 05:21:36 +0200 Subject: [PATCH] [cli] Convert import path to absolute Fixes #61 --- legendary/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legendary/cli.py b/legendary/cli.py index 1a2d5e0..bbee5d2 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -772,6 +772,9 @@ class LegendaryCLI: logger.info(f'Run "legendary repair {args.app_name}" to repair your game installation.') def import_game(self, args): + # make sure path is absolute + args.app_path = os.path.abspath(args.app_path) + if not os.path.exists(args.app_path): logger.error(f'Specified path "{args.app_path}" does not exist!') exit(1)