From 6fc398b418c889216328d4d5b4932f8e8bf3cf94 Mon Sep 17 00:00:00 2001 From: leminlimez <59540996+leminlimez@users.noreply.github.com> Date: Fri, 21 Mar 2025 22:34:25 -0400 Subject: [PATCH] fix path stupid --- tweaks/posterboard_tweak.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tweaks/posterboard_tweak.py b/tweaks/posterboard_tweak.py index 1943a5a..0caa557 100644 --- a/tweaks/posterboard_tweak.py +++ b/tweaks/posterboard_tweak.py @@ -89,7 +89,7 @@ class PosterboardTweak(Tweak): def clean_path_name(self, path: str): - return re.sub('[^a-zA-Z0-9\.\/\-_ ]', '', path) + return path# re.sub('[^a-zA-Z0-9\.\/\-_ ]', '', path) def recursive_add(self, @@ -167,7 +167,8 @@ class PosterboardTweak(Tweak): # try to get past directory name limit on windows output_dir = "\\\\?\\" + output_dir for tendie in self.tendies: - zip_output = os.makedirs(os.path.join(output_dir, str(uuid.uuid4()))) + zip_output = os.path.join(output_dir, str(uuid.uuid4())) + os.makedirs(zip_output) with zipfile.ZipFile(tendie.path, 'r') as zip_ref: zip_ref.extractall(zip_output) # add the files