diff --git a/__init__.py b/__init__.py index b616864..4406750 100644 --- a/__init__.py +++ b/__init__.py @@ -178,10 +178,17 @@ def checkModules(nodeElement): if os.path.exists(file_requir): log(" -> File 'requirements.txt' found!") with open(file_requir) as f: + lines = f.readlines() required_modules = { - module_name_cut_version.split(line.strip())[0] for line in f if not line.startswith("#") + module_name_cut_version.split(line.strip())[0] for line in lines if not line.startswith("#") } + # [Hack] argostranslate module checking install + if nodeElement == "ArgosTranslateNode" and "argostranslate" in installed_modules and len(lines): + if DEBUG: + printColorInfo("* Argostranslate installed removed from required modules!") + required_modules.remove(lines[0]) + modules_to_install = required_modules - installed_modules if modules_to_install: diff --git a/pyproject.toml b/pyproject.toml index e4bb86b..3a505da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui_custom_nodes_alekpet" description = "Nodes: PoseNode, PainterNode, TranslateTextNode, TranslateCLIPTextEncodeNode, DeepTranslatorTextNode, DeepTranslatorCLIPTextEncodeNode, ArgosTranslateTextNode, ArgosTranslateCLIPTextEncodeNode, ChatGLM4TranslateCLIPTextEncodeNode, ChatGLM4TranslateTextNode, ChatGLM4InstructNode, ChatGLM4InstructMediaNode, PreviewTextNode, HexToHueNode, ColorsCorrectNode, IDENode." -version = "1.0.87" +version = "1.0.88" license = { file = "LICENSE" } [project.urls]