FileNotFoundError
for custom_nodes
directory at startup (should be created instead of bailing)
#8110
Labels
Potential Bug
User is reporting a bug. This should be tested.
Expected Behavior
ComfyUI should attempt to
create the directory it wantsskip checking the implicitcustom_nodes/
dir when it is missing, rather than bail at startup.Outdated
ComfyUI startup already handles creating other data directories when they're missing:
ComfyUI/folder_paths.py
Lines 49 to 52 in 98ff01e
input/
directory:ComfyUI/folder_paths.py
Lines 96 to 100 in 98ff01e
output/
directory: (created later on-demand)ComfyUI/folder_paths.py
Lines 393 to 394 in 98ff01e
user/
directory:ComfyUI/app/user_manager.py
Lines 33 to 39 in 98ff01e
temp/
directory:ComfyUI/main.py
Line 286 in f3ff5c4
Similar logic could be used to create a
custom_nodes/
directory instead of failing?ComfyUI/folder_paths.py
Line 41 in 98ff01e
ComfyUI/main.py
Lines 73 to 75 in 98ff01e
Actual Behavior
When running ComfyUI with an empty data directory (such as when first using the
--base-directory
arg), during ComfyUI startup directories will be created as needed, all except forcustom_nodes
which raises an exception instead ofalso creatingskipping that directory:Steps to Reproduce
Run ComfyUI with
--base-directory
arg pointing to an empty directory.Debug Logs
The text was updated successfully, but these errors were encountered: