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
f895260e
Commit
f895260e
authored
Sep 19, 2023
by
comfyanonymous
Browse files
Merge branch 'escape-glob' of
https://github.com/seanlynch/ComfyUI
parents
7c9a92f5
83215924
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server.py
server.py
+2
-2
No files found.
server.py
View file @
f895260e
...
@@ -132,12 +132,12 @@ class PromptServer():
...
@@ -132,12 +132,12 @@ class PromptServer():
@
routes
.
get
(
"/extensions"
)
@
routes
.
get
(
"/extensions"
)
async
def
get_extensions
(
request
):
async
def
get_extensions
(
request
):
files
=
glob
.
glob
(
os
.
path
.
join
(
files
=
glob
.
glob
(
os
.
path
.
join
(
self
.
web_root
,
'extensions/**/*.js'
),
recursive
=
True
)
glob
.
escape
(
self
.
web_root
)
,
'extensions/**/*.js'
),
recursive
=
True
)
extensions
=
list
(
map
(
lambda
f
:
"/"
+
os
.
path
.
relpath
(
f
,
self
.
web_root
).
replace
(
"
\\
"
,
"/"
),
files
))
extensions
=
list
(
map
(
lambda
f
:
"/"
+
os
.
path
.
relpath
(
f
,
self
.
web_root
).
replace
(
"
\\
"
,
"/"
),
files
))
for
name
,
dir
in
nodes
.
EXTENSION_WEB_DIRS
.
items
():
for
name
,
dir
in
nodes
.
EXTENSION_WEB_DIRS
.
items
():
files
=
glob
.
glob
(
os
.
path
.
join
(
dir
,
'**/*.js'
),
recursive
=
True
)
files
=
glob
.
glob
(
os
.
path
.
join
(
glob
.
escape
(
dir
)
,
'**/*.js'
),
recursive
=
True
)
extensions
.
extend
(
list
(
map
(
lambda
f
:
"/extensions/"
+
urllib
.
parse
.
quote
(
extensions
.
extend
(
list
(
map
(
lambda
f
:
"/extensions/"
+
urllib
.
parse
.
quote
(
name
)
+
"/"
+
os
.
path
.
relpath
(
f
,
dir
).
replace
(
"
\\
"
,
"/"
),
files
)))
name
)
+
"/"
+
os
.
path
.
relpath
(
f
,
dir
).
replace
(
"
\\
"
,
"/"
),
files
)))
...
...
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