Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
1964bf1e
Commit
1964bf1e
authored
Nov 23, 2023
by
Enrico Fasoli
Browse files
fix: folder handling issues
parent
4d2437e6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
folder_paths.py
folder_paths.py
+4
-1
nodes.py
nodes.py
+1
-1
No files found.
folder_paths.py
View file @
1964bf1e
...
...
@@ -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
):
try
:
os
.
makedirs
(
input_directory
)
except
:
print
(
"Failed to create input directory"
)
def
set_output_directory
(
output_dir
):
global
output_directory
...
...
nodes.py
View file @
1964bf1e
...
...
@@ -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__"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment