Merge pull request #110 from AIrjen/hotfix_comfyui

Try and fix it
This commit is contained in:
AIrjen
2023-08-07 21:33:21 +02:00
committed by GitHub
2 changed files with 10 additions and 4 deletions
+2 -4
View File
@@ -4,10 +4,8 @@ import folder_paths
from datetime import datetime
import uuid
# adding Folder_2/subfolder to the system path
# sys.path.insert(0, '/home/amninder/Desktop/project/Folder_2/subfolder')
custom_nodes_path = os.path.dirname(__file__)
onebuttonprompt_path = os.path.join(custom_nodes_path, "..", "onebuttonprompt")
custom_nodes_path = os.path.join(folder_paths.base_path, "custom_nodes")
onebuttonprompt_path = os.path.join(custom_nodes_path, "onebuttonprompt")
sys.path.insert(0, onebuttonprompt_path)
from build_dynamic_prompt import *
+8
View File
@@ -1,3 +1,11 @@
import os
import sys
import folder_paths
custom_nodes_path = os.path.join(folder_paths.base_path, "custom_nodes")
onebuttonprompt_path = os.path.join(custom_nodes_path, "onebuttonprompt")
sys.path.insert(0, onebuttonprompt_path)
from .OneButtonPromptNodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']