Spaces:
Running
on
Zero
Running
on
Zero
Upload reactor_utils.py
Browse files
custom_nodes/comfyui-reactor-node/reactor_utils.py
CHANGED
@@ -225,7 +225,7 @@ def add_folder_path_and_extensions(folder_name, full_folder_paths, extensions):
|
|
225 |
# Unpack the current paths and extensions
|
226 |
current_paths, current_extensions = folder_paths.folder_names_and_paths[folder_name]
|
227 |
# Update the extensions set with the new extensions
|
228 |
-
updated_extensions = current_extensions | extensions
|
229 |
# Reassign the updated tuple back to the dictionary
|
230 |
folder_paths.folder_names_and_paths[folder_name] = (current_paths, updated_extensions)
|
231 |
else:
|
|
|
225 |
# Unpack the current paths and extensions
|
226 |
current_paths, current_extensions = folder_paths.folder_names_and_paths[folder_name]
|
227 |
# Update the extensions set with the new extensions
|
228 |
+
updated_extensions = current_extensions | set(extensions)
|
229 |
# Reassign the updated tuple back to the dictionary
|
230 |
folder_paths.folder_names_and_paths[folder_name] = (current_paths, updated_extensions)
|
231 |
else:
|