mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Fix extensions install
This commit is contained in:
parent
e145d9a0da
commit
85f45cafa1
@ -190,10 +190,9 @@ def update_requirements(initial_installation=False):
|
|||||||
# Extensions requirements are installed only during the initial install by default.
|
# Extensions requirements are installed only during the initial install by default.
|
||||||
# That can be changed with the INSTALL_EXTENSIONS environment variable.
|
# That can be changed with the INSTALL_EXTENSIONS environment variable.
|
||||||
install_extensions = os.environ.get("INSTALL_EXTENSIONS", "false").lower() in ("yes", "y", "true", "1", "t", "on")
|
install_extensions = os.environ.get("INSTALL_EXTENSIONS", "false").lower() in ("yes", "y", "true", "1", "t", "on")
|
||||||
if initial_installation or install_extensions:
|
if initial_installation and not install_extensions:
|
||||||
if not install_extensions:
|
|
||||||
print_big_message("Will not install extensions due to INSTALL_EXTENSIONS environment variable.")
|
print_big_message("Will not install extensions due to INSTALL_EXTENSIONS environment variable.")
|
||||||
else:
|
elif initial_installation or install_extensions:
|
||||||
print("Installing extensions requirements.")
|
print("Installing extensions requirements.")
|
||||||
extensions = next(os.walk("extensions"))[1]
|
extensions = next(os.walk("extensions"))[1]
|
||||||
for extension in extensions:
|
for extension in extensions:
|
||||||
|
Loading…
Reference in New Issue
Block a user