未验证 提交 30f2e356 编写于 作者: D DepFA 提交者: GitHub

add importlib.reload

上级 afaa03c5
import os import os
import threading import threading
import time import time
import importlib
from modules import devices from modules import devices
from modules.paths import script_path from modules.paths import script_path
import signal import signal
...@@ -116,8 +116,10 @@ def webui(): ...@@ -116,8 +116,10 @@ def webui():
time.sleep(0.5) time.sleep(0.5)
break break
print('Reloading Scripts') print('Reloading Custom Scripts')
modules.scripts.reload_scripts(os.path.join(script_path, "scripts")) modules.scripts.reload_scripts(os.path.join(script_path, "scripts"))
print('Reloading modules: modules.ui')
importlib.reload(modules.ui)
print('Restarting Gradio') print('Restarting Gradio')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册