From 2b20f59cfdbab14a06bc4b9295db8eb94cd5bc66 Mon Sep 17 00:00:00 2001 From: wailovet Date: Tue, 30 Apr 2024 12:51:02 +0800 Subject: [PATCH] 'update' --- mz_gen_translate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mz_gen_translate.py b/mz_gen_translate.py index 627a7b9..0d15244 100644 --- a/mz_gen_translate.py +++ b/mz_gen_translate.py @@ -31,6 +31,10 @@ def gen_translate(NODE_DISPLAY_NAME_MAPPINGS={}, NODE_CLASS_MAPPINGS={}): translation_config = os.path.join( translation_dir, "ComfyUI_MinusZone.translate.json") if os.path.exists(translation_dir): + if not os.path.exists(translation_config): + with open(translation_config, "w") as f: + f.write("{}") + if os.path.exists(translation_config): translate_config = "{}" with open(translation_config, "r") as f: