From 9487f1197b09e1fdcac1b5c3fecceb393870df19 Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Fri, 19 May 2023 10:14:55 -0500 Subject: [PATCH] Fix progress bars --- pythonlib/games/ToolsTOR.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pythonlib/games/ToolsTOR.py b/pythonlib/games/ToolsTOR.py index a371f79..7921885 100644 --- a/pythonlib/games/ToolsTOR.py +++ b/pythonlib/games/ToolsTOR.py @@ -185,8 +185,8 @@ class ToolsTOR(ToolsTales): # TODO: use pathlib for everything folder_path = Path(self.story_XML_patch) / "XML" scpk_path = Path(self.dat_archive_extract) / "SCPK" - - for file in tqdm(scpk_path.glob("*.scpk")): + + for file in tqdm(list(scpk_path.glob("*.scpk"))): theirsce = Theirsce(Scpk(file).rsce) xml_text = self.get_xml_from_theirsce(theirsce, "Story") self.id = 1 @@ -203,7 +203,7 @@ class ToolsTOR(ToolsTales): folder_path = Path(self.skit_XML_patch) / "XML" pak2_path = Path(self.dat_archive_extract) / "PAK2" - for file in tqdm(pak2_path.glob("*.pak2")): + for file in tqdm(list(pak2_path.glob("*.pak2"))): with open(file, "rb") as pak: theirsce = pak2lib.get_theirsce_from_pak2(pak.read())