Skip to content

Commit

Permalink
fix: folder handling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fazo96 committed Nov 23, 2023
1 parent 4d2437e commit 1964bf1
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 @@ -1808,7 +1808,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 1964bf1

Please sign in to comment.