mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 14:45:06 +03:00
fix: Only import tqdm when needed
This commit is contained in:
parent
95821f0132
commit
8b7b99f8d5
@ -7,7 +7,6 @@ import importlib.util
|
||||
import platform
|
||||
import json
|
||||
from functools import lru_cache
|
||||
import tqdm
|
||||
|
||||
from modules import cmd_args, errors
|
||||
from modules.paths_internal import script_path, extensions_dir
|
||||
@ -249,6 +248,7 @@ def run_extensions_installers(settings_file):
|
||||
return
|
||||
|
||||
with startup_timer.subcategory("run extensions installers"):
|
||||
import tqdm
|
||||
progress_bar = tqdm.tqdm(list_extensions(settings_file))
|
||||
for dirname_extension in progress_bar:
|
||||
progress_bar.set_description(f"Installing {dirname_extension}")
|
||||
|
Loading…
Reference in New Issue
Block a user