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
16001e94
Commit
16001e94
authored
Mar 16, 2023
by
m957ymj75urz
Browse files
fixes for specific paths
parent
629272c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
nodes.py
nodes.py
+3
-2
web/scripts/app.js
web/scripts/app.js
+3
-1
No files found.
nodes.py
View file @
16001e94
...
...
@@ -802,8 +802,9 @@ class SaveImage:
digits
=
0
return
(
digits
,
prefix
)
subfolder
=
os
.
path
.
dirname
(
filename_prefix
)
filename
=
os
.
path
.
basename
(
filename_prefix
)
subfolder
=
os
.
path
.
dirname
(
os
.
path
.
normpath
(
filename_prefix
))
filename
=
os
.
path
.
basename
(
os
.
path
.
normpath
(
filename_prefix
))
full_output_folder
=
os
.
path
.
join
(
self
.
output_dir
,
subfolder
)
if
os
.
path
.
commonpath
((
self
.
output_dir
,
os
.
path
.
realpath
(
full_output_folder
)))
!=
self
.
output_dir
:
...
...
web/scripts/app.js
View file @
16001e94
...
...
@@ -110,9 +110,11 @@ class ComfyApp {
const
img
=
new
Image
();
img
.
onload
=
()
=>
r
(
img
);
img
.
onerror
=
()
=>
r
(
null
);
var
filename
=
src
.
replace
(
/^.*
[\\\/]
/
,
''
);
var
subfolder
=
src
.
replace
(
filename
,
''
);
img
.
src
=
"
/view?file=
"
+
filename
+
"
&subfolder=
"
+
subfolder
;
var
params
=
new
URLSearchParams
({
file
:
filename
,
subfolder
});
img
.
src
=
"
/view?
"
+
params
.
toString
();
});
})
).
then
((
imgs
)
=>
{
...
...
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