mirror of
https://github.com/Escartem/AnimeWwise.git
synced 2026-06-11 12:10:24 +08:00
fixes
This commit is contained in:
@@ -8,7 +8,7 @@ from allocator import Allocator
|
|||||||
from filereader import FileReader
|
from filereader import FileReader
|
||||||
|
|
||||||
cwd = os.getcwd()
|
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)
|
call = lambda args: subprocess.call(args, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
|
||||||
|
|
||||||
class WwiseExtract:
|
class WwiseExtract:
|
||||||
@@ -72,7 +72,8 @@ class WwiseExtract:
|
|||||||
|
|
||||||
def get_hdiff_files(self, data, hdiff_data, source_name):
|
def get_hdiff_files(self, data, hdiff_data, source_name):
|
||||||
working_dir = tempfile.TemporaryDirectory()
|
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:
|
with open(path(working_dir.name, "source.pck"), "wb") as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user