fix tqdm not found on new instance

This commit is contained in:
Jabasukuriputo Wang 2023-07-22 17:51:15 +08:00 committed by GitHub
parent 7afe7375e1
commit b2f0040da7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,6 @@ import importlib.util
import platform
import json
from functools import lru_cache
from tqdm.auto import tqdm
from modules import cmd_args, errors
from modules.paths_internal import script_path, extensions_dir
@ -225,6 +224,7 @@ def run_extensions_installers(settings_file):
if not os.path.isdir(extensions_dir):
return
from tqdm.auto import tqdm
pbar_extensions = tqdm(list_extensions(settings_file),
bar_format="{desc}: |{bar}|{percentage:3.0f}% [{n_fmt}/{total_fmt} {elapsed}<{remaining}]")
for dirname_extension in pbar_extensions: