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
a3d0b56c
Commit
a3d0b56c
authored
Feb 19, 2023
by
comfyanonymous
Browse files
Fix for relative imports in custom nodes.
parent
137ae260
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nodes.py
nodes.py
+1
-1
No files found.
nodes.py
View file @
a3d0b56c
...
@@ -759,7 +759,7 @@ def load_custom_nodes():
...
@@ -759,7 +759,7 @@ def load_custom_nodes():
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
module_name
=
"custom_node_module.{}"
.
format
(
possible_module
)
module_name
=
possible_module
try
:
try
:
if
os
.
path
.
isfile
(
module_path
):
if
os
.
path
.
isfile
(
module_path
):
module_spec
=
importlib
.
util
.
spec_from_file_location
(
module_name
,
module_path
)
module_spec
=
importlib
.
util
.
spec_from_file_location
(
module_name
,
module_path
)
...
...
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