Man-isH-07 commited on
Commit
77a69bb
·
1 Parent(s): 11c10b6
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -134,7 +134,20 @@ print("Parent directory contents:", os.listdir('..') if os.path.exists('..') els
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
140
 
 
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
+ print("------------------")
138
+
139
+ print("Checking for utils in sys.modules:", 'utils' in sys.modules)
140
+ if 'utils' in sys.modules:
141
+ print("utils module location:", sys.modules['utils'])
142
+ print("Attempting to import utils manually...")
143
+ try:
144
+ import utils
145
+ print("utils imported successfully:", utils)
146
+ print("utils.__path__:", getattr(utils, '__path__', 'Not a package'))
147
+ print("utils.json_util available:", hasattr(utils, 'json_util'))
148
+ except ImportError as e:
149
+ print("Failed to import utils:", e)
150
+
151
  def import_custom_nodes() -> None:
152
  """Find all custom nodes in the custom_nodes folder and add those node objects to NODE_CLASS_MAPPINGS
153