[cli] Convert import path to absolute

Fixes #61
This commit is contained in:
derrod 2020-09-05 05:21:36 +02:00
parent 6711897750
commit ade9080152

View file

@ -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)