diff --git a/ModManager.py b/ModManager.py index 5a9228c..784ea1e 100755 --- a/ModManager.py +++ b/ModManager.py @@ -384,8 +384,8 @@ class ModManager: if content.endswith(os.path.sep): self.__logger.debug(f"Skipped moving of {os.path.join(tmp_dir, content)}") continue - parent_dir = os.path.join(self.__settings.get_game_folder().replace("/", os.path.sep), - file.replace("/", os.path.sep)).split(file.replace("/", os.path.sep))[0] + parent_dir = os.path.join(self.__settings.get_game_folder(), file).split(os.path.basename(file))[0]\ + .replace("/", os.path.sep) if not os.path.exists(parent_dir): os.mkdir(parent_dir) if not os.path.exists(os.path.join(self.__settings.get_game_folder().replace("/", os.path.sep),