add script reload method
This commit is contained in:
parent
3f417566b0
commit
4c2478a68a
|
@ -165,3 +165,12 @@ class ScriptRunner:
|
|||
|
||||
scripts_txt2img = ScriptRunner()
|
||||
scripts_img2img = ScriptRunner()
|
||||
|
||||
def reload_scripts(basedir):
|
||||
global scripts_txt2img,scripts_img2img
|
||||
|
||||
scripts_data.clear()
|
||||
load_scripts(basedir)
|
||||
|
||||
scripts_txt2img = ScriptRunner()
|
||||
scripts_img2img = ScriptRunner()
|
||||
|
|
Loading…
Reference in New Issue
Block a user