mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 14:20:49 +08:00
Fix issue when custom_nodes directory does not exist
This commit is contained in:
parent
9d3eb74796
commit
bae2068111
@ -60,7 +60,7 @@ def _vanilla_load_custom_nodes_2() -> ExportedNodes:
|
|||||||
exported_nodes = ExportedNodes()
|
exported_nodes = ExportedNodes()
|
||||||
for custom_node_path in node_paths:
|
for custom_node_path in node_paths:
|
||||||
if not os.path.exists(custom_node_path) or not os.path.isdir(custom_node_path):
|
if not os.path.exists(custom_node_path) or not os.path.isdir(custom_node_path):
|
||||||
pass
|
continue
|
||||||
possible_modules = os.listdir(os.path.realpath(custom_node_path))
|
possible_modules = os.listdir(os.path.realpath(custom_node_path))
|
||||||
if "__pycache__" in possible_modules:
|
if "__pycache__" in possible_modules:
|
||||||
possible_modules.remove("__pycache__")
|
possible_modules.remove("__pycache__")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user