From 3e68f781ba6834ca3c2d7ab81f840cb8a3e8d66a Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 10 Aug 2025 17:36:17 +0200 Subject: [PATCH] - fixed makedirs - fixed json.dump fp --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 9e6466d..d2f6b4c 100644 --- a/main.py +++ b/main.py @@ -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