Skip to content

Commit

Permalink
Merge branch 'fix_folders_handling' of https://github.com/fazo96/ComfyUI
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Nov 29, 2023
2 parents 777f6b1 + 1964bf1 commit d19de27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion folder_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
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
Expand Down
2 changes: 1 addition & 1 deletion nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,7 @@ def load_custom_nodes():
node_paths = folder_paths.get_folder_paths("custom_nodes")
node_import_times = []
for custom_node_path in node_paths:
possible_modules = os.listdir(custom_node_path)
possible_modules = os.listdir(os.path.realpath(custom_node_path))
if "__pycache__" in possible_modules:
possible_modules.remove("__pycache__")

Expand Down

0 comments on commit d19de27

Please sign in to comment.