try solve duplicate import bug

This commit is contained in:
zombieyang
2025-02-14 08:32:40 +08:00
parent f1993eb2b1
commit cbd3d21994
2 changed files with 45 additions and 31 deletions
+5
View File
@@ -4,11 +4,16 @@ from .instances import PPPInstance
from .apis import registerSocketEvents, registerComfyHTTPEndpoints, registerSDHTTPEndpoints
import re
import threading
from nodes import NODE_CLASS_MAPPINGS
# Define projectRoot as parent directory of current file
projectRoot = path.dirname(path.dirname(__file__))
class SDPPP:
@classmethod
def is_attached(cls):
return 'SDPPP Get Document' in NODE_CLASS_MAPPINGS
def __init__(self):
self.ppp_instances = dict()