1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-04 23:40:25 +08:00
This commit is contained in:
Escartem
2024-07-25 11:50:41 +02:00
parent 37489e47ce
commit e2e2680db0

View File

@@ -8,7 +8,7 @@ from allocator import Allocator
from filereader import FileReader
cwd = os.getcwd()
path = lambda base, path: os.path.join(base, path)
path = lambda *args: os.path.join(*args)
call = lambda args: subprocess.call(args, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
class WwiseExtract:
@@ -72,7 +72,8 @@ class WwiseExtract:
def get_hdiff_files(self, data, hdiff_data, source_name):
working_dir = tempfile.TemporaryDirectory()
self.hdiff_dir = tempfile.TemporaryDirectory()
if self.hdiff_dir is None:
self.hdiff_dir = tempfile.TemporaryDirectory()
with open(path(working_dir.name, "source.pck"), "wb") as f:
f.write(data)