From 62c997042d519ba2dd574e6f99a68ee1f1ec9fc4 Mon Sep 17 00:00:00 2001 From: Stewie Date: Mon, 27 Jun 2022 19:25:41 -0400 Subject: [PATCH] fixing path --- ToolsTOR.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ToolsTOR.py b/ToolsTOR.py index a52a643..e76cdfb 100644 --- a/ToolsTOR.py +++ b/ToolsTOR.py @@ -203,10 +203,10 @@ class ToolsTOR(ToolsTales): def pack_Story_File(self, scpkFileName): #Copy the original SCPK file to the folder used for the new version - shutil.copy( self.datPathExtract + "SCPK/" + scpkFileName, self.storyPathArchives + scpkFileName) + shutil.copy( self.dat_archive_extract + "SCPK/" + scpkFileName, self.storyPathArchives + scpkFileName) #Open the original SCPK - with open( self.datPathExtract + "SCPK/" + scpkFileName, 'r+b') as scpk: + with open( self.dat_archive_extract + "SCPK/" + scpkFileName, 'r+b') as scpk: #Get nb_files and files_size @@ -315,7 +315,7 @@ class ToolsTOR(ToolsTales): c_type = struct.unpack(" 0: file_list.extend( [os.path.join(path,file) for file in filenames])