mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-03-15 05:57:20 +00:00
exclude directory no_auto_execute from automaticaly execute javascript in extension
js files in directory no_auto_execute will not be automaticaly executed like all other js files inside extension inside WEB_DIRECTORY
This commit is contained in:
parent
8dc19e40d1
commit
3eec3a70f9
@ -135,6 +135,7 @@ class PromptServer():
|
|||||||
|
|
||||||
for name, dir in nodes.EXTENSION_WEB_DIRS.items():
|
for name, dir in nodes.EXTENSION_WEB_DIRS.items():
|
||||||
files = glob.glob(os.path.join(glob.escape(dir), '**/*.js'), recursive=True)
|
files = glob.glob(os.path.join(glob.escape(dir), '**/*.js'), recursive=True)
|
||||||
|
files = [file for file in files if 'no_auto_execute' not in file]
|
||||||
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)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user