mirror of
https://github.com/derrod/legendary.git
synced 2025-01-09 06:05:28 +00:00
[core] Strip name of game installation folder
Thanks Kerbal Space Program for having an invalid directory name as your set folder!
This commit is contained in:
parent
00f025dcc9
commit
6b8273f983
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue