- fixed makedirs
- fixed json.dump fp
This commit is contained in:
@@ -119,7 +119,7 @@ class WaldorfMicroWave2V00(AImage):
|
|||||||
fp.write(data)
|
fp.write(data)
|
||||||
|
|
||||||
def _json_save(self, filename: str, 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)
|
json.dump(data, fp, indent=4)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@@ -189,7 +189,7 @@ class PpgEvu2v00(AImage):
|
|||||||
|
|
||||||
|
|
||||||
def detect(args):
|
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)
|
image = WaldorfMicroWave2V00(args.filepath, args.extra, args.output_dir)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user