Spaces:
Runtime error
Runtime error
Man-isH-07
commited on
Commit
·
11c10b6
1
Parent(s):
fd3dc99
v1.2
Browse files
app.py
CHANGED
@@ -127,6 +127,13 @@ def add_comfyui_directory_to_sys_path() -> None:
|
|
127 |
# add_extra_model_paths()
|
128 |
|
129 |
print("Model paths added")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
|
131 |
def import_custom_nodes() -> None:
|
132 |
"""Find all custom nodes in the custom_nodes folder and add those node objects to NODE_CLASS_MAPPINGS
|
@@ -155,6 +162,14 @@ def import_custom_nodes() -> None:
|
|
155 |
|
156 |
print("Custom Nodes Loaded:", NODE_CLASS_MAPPINGS.keys())
|
157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
import_custom_nodes()
|
159 |
|
160 |
|
|
|
127 |
# add_extra_model_paths()
|
128 |
|
129 |
print("Model paths added")
|
130 |
+
import sys
|
131 |
+
print("Current working directory:", os.getcwd())
|
132 |
+
print("Current directory contents:", os.listdir('.'))
|
133 |
+
print("Parent directory contents:", os.listdir('..') if os.path.exists('..') else "No parent directory")
|
134 |
+
print("sys.path:", sys.path)
|
135 |
+
print("Utils directory contents:", os.listdir('utils') if os.path.exists('utils') else "utils not found")
|
136 |
+
print("Parent utils directory contents:", os.listdir('../utils') if os.path.exists('../utils') else "parent utils not found")
|
137 |
|
138 |
def import_custom_nodes() -> None:
|
139 |
"""Find all custom nodes in the custom_nodes folder and add those node objects to NODE_CLASS_MAPPINGS
|
|
|
162 |
|
163 |
print("Custom Nodes Loaded:", NODE_CLASS_MAPPINGS.keys())
|
164 |
|
165 |
+
|
166 |
+
import sys
|
167 |
+
print("Current working directory:", os.getcwd())
|
168 |
+
print("Current directory contents:", os.listdir('.'))
|
169 |
+
print("Parent directory contents:", os.listdir('..') if os.path.exists('..') else "No parent directory")
|
170 |
+
print("sys.path:", sys.path)
|
171 |
+
print("Utils directory contents:", os.listdir('utils') if os.path.exists('utils') else "utils not found")
|
172 |
+
print("Parent utils directory contents:", os.listdir('../utils') if os.path.exists('../utils') else "parent utils not found")
|
173 |
import_custom_nodes()
|
174 |
|
175 |
|