mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 22:53:25 +03:00
simplify
This commit is contained in:
parent
f2ebcee7c4
commit
a2a97e57f0
@ -7,6 +7,7 @@ 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
|
||||||
@ -248,11 +249,10 @@ def run_extensions_installers(settings_file):
|
|||||||
return
|
return
|
||||||
|
|
||||||
with startup_timer.subcategory("run extensions installers"):
|
with startup_timer.subcategory("run extensions installers"):
|
||||||
from tqdm.auto import tqdm
|
progress_bar = tqdm.tqdm(list_extensions(settings_file))
|
||||||
pbar_extensions = tqdm(list_extensions(settings_file),
|
for dirname_extension in progress_bar:
|
||||||
bar_format="{desc}: |{bar}|{percentage:3.0f}% [{n_fmt}/{total_fmt} {elapsed}<{remaining}]")
|
progress_bar.set_description(f"Installing {dirname_extension}")
|
||||||
for dirname_extension in pbar_extensions:
|
|
||||||
pbar_extensions.set_description("Installing %s" % dirname_extension)
|
|
||||||
path = os.path.join(extensions_dir, dirname_extension)
|
path = os.path.join(extensions_dir, dirname_extension)
|
||||||
|
|
||||||
if os.path.isdir(path):
|
if os.path.isdir(path):
|
||||||
|
Loading…
Reference in New Issue
Block a user