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
2ec6d1c6
Commit
2ec6d1c6
authored
May 15, 2023
by
comfyanonymous
Browse files
Don't import custom nodes when the folder ends with .disabled
parent
c02a554b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
nodes.py
nodes.py
+1
-0
No files found.
nodes.py
View file @
2ec6d1c6
...
@@ -1326,6 +1326,7 @@ def load_custom_nodes():
...
@@ -1326,6 +1326,7 @@ def load_custom_nodes():
for
possible_module
in
possible_modules
:
for
possible_module
in
possible_modules
:
module_path
=
os
.
path
.
join
(
custom_node_path
,
possible_module
)
module_path
=
os
.
path
.
join
(
custom_node_path
,
possible_module
)
if
os
.
path
.
isfile
(
module_path
)
and
os
.
path
.
splitext
(
module_path
)[
1
]
!=
".py"
:
continue
if
os
.
path
.
isfile
(
module_path
)
and
os
.
path
.
splitext
(
module_path
)[
1
]
!=
".py"
:
continue
if
module_path
.
endswith
(
".disabled"
):
continue
time_before
=
time
.
perf_counter
()
time_before
=
time
.
perf_counter
()
success
=
load_custom_node
(
module_path
)
success
=
load_custom_node
(
module_path
)
node_import_times
.
append
((
time
.
perf_counter
()
-
time_before
,
module_path
,
success
))
node_import_times
.
append
((
time
.
perf_counter
()
-
time_before
,
module_path
,
success
))
...
...
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