mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-19 21:00:14 +08:00
Merge pull request #12436 from catboxanon/fix/tqdm
Only import `tqdm` when needed in `launch_utils`
This commit is contained in:
commit
ab42f81c75
@ -7,7 +7,6 @@ import importlib.util
|
|||||||
import platform
|
import platform
|
||||||
import json
|
import json
|
||||||
from functools import lru_cache
|
from functools import lru_cache
|
||||||
import tqdm
|
|
||||||
|
|
||||||
from modules import cmd_args, errors
|
from modules import cmd_args, errors
|
||||||
from modules.paths_internal import script_path, extensions_dir
|
from modules.paths_internal import script_path, extensions_dir
|
||||||
@ -249,6 +248,7 @@ def run_extensions_installers(settings_file):
|
|||||||
return
|
return
|
||||||
|
|
||||||
with startup_timer.subcategory("run extensions installers"):
|
with startup_timer.subcategory("run extensions installers"):
|
||||||
|
import tqdm
|
||||||
progress_bar = tqdm.tqdm(list_extensions(settings_file))
|
progress_bar = tqdm.tqdm(list_extensions(settings_file))
|
||||||
for dirname_extension in progress_bar:
|
for dirname_extension in progress_bar:
|
||||||
progress_bar.set_description(f"Installing {dirname_extension}")
|
progress_bar.set_description(f"Installing {dirname_extension}")
|
||||||
|
Loading…
Reference in New Issue
Block a user