- fixed makedirs

- fixed json.dump fp
This commit is contained in:
2025-08-10 17:36:17 +02:00
parent 22b1409f14
commit 3e68f781ba
+2 -2
View File
@@ -119,7 +119,7 @@ class WaldorfMicroWave2V00(AImage):
fp.write(data)
def _json_save(self, filename: str, data):
with open(os.path.join(self.out_dir, filename), 'wb') as fp:
with open(os.path.join(self.out_dir, filename), 'w') as fp:
json.dump(data, fp, indent=4)
@staticmethod
@@ -189,7 +189,7 @@ class PpgEvu2v00(AImage):
def detect(args):
os.makedirs(args.output_dir)
os.makedirs(args.output_dir, exist_ok=True)
image = WaldorfMicroWave2V00(args.filepath, args.extra, args.output_dir)
pass