From 6b8273f983c11e392726fd7be4fce59a2028b3e4 Mon Sep 17 00:00:00 2001 From: derrod Date: Thu, 5 Jan 2023 17:28:32 +0100 Subject: [PATCH] [core] Strip name of game installation folder Thanks Kerbal Space Program for having an invalid directory name as your set folder! --- legendary/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/core.py b/legendary/core.py index f592794..838bb33 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -1383,7 +1383,7 @@ class LegendaryCore: self.log.info(f'"{base_path}" does not exist, creating...') os.makedirs(base_path) - install_path = os.path.normpath(os.path.join(base_path, game_folder)) + install_path = os.path.normpath(os.path.join(base_path, game_folder.strip())) # check for write access on the install path or its parent directory if it doesn't exist yet base_path = os.path.dirname(install_path)