1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

Merge branch 'fix_folders_handling' of https://github.com/fazo96/ComfyUI

This commit is contained in:
comfyanonymous
2023-11-29 14:10:30 -05:00
2 changed files with 5 additions and 2 deletions

View File

@@ -38,7 +38,10 @@ input_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "inp
filename_list_cache = {}
if not os.path.exists(input_directory):
os.makedirs(input_directory)
try:
os.makedirs(input_directory)
except:
print("Failed to create input directory")
def set_output_directory(output_dir):
global output_directory