Compare commits

...

2 Commits

Author SHA1 Message Date
j-k
e8aeba7c4c
Merge ba07c89407 into c4a14df9a3 2026-01-20 23:56:49 +00:00
06kellyjac
ba07c89407 Create custom_nodes dir if does not exist
Avoids a crash from ComfyUI expecting the custom_nodes dir by
ensuring it exists.
2025-09-10 18:43:25 +01:00

View File

@ -105,6 +105,14 @@ if not os.path.exists(input_directory):
except:
logging.error("Failed to create input directory")
custom_nodes_paths, _ = folder_names_and_paths["custom_nodes"]
for directory in custom_nodes_paths:
if not os.path.exists(directory):
try:
os.makedirs(directory)
except:
logging.error(f"Failed to create custom_nodes directory: {directory}")
def set_output_directory(output_dir: str) -> None:
global output_directory
output_directory = output_dir