mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 18:02:58 +08:00
colab-dependencies patch
This commit is contained in:
parent
6f34fffc18
commit
e19f1433ea
@ -5,14 +5,17 @@ import subprocess
|
|||||||
def get_enabled_subdirectories_with_files(base_directory):
|
def get_enabled_subdirectories_with_files(base_directory):
|
||||||
subdirs_with_files = []
|
subdirs_with_files = []
|
||||||
for subdir in os.listdir(base_directory):
|
for subdir in os.listdir(base_directory):
|
||||||
full_path = os.path.join(base_directory, subdir)
|
try:
|
||||||
if os.path.isdir(full_path) and not subdir.endswith(".disabled") and not subdir.startswith('.') and subdir != '__pycache__':
|
full_path = os.path.join(base_directory, subdir)
|
||||||
print(f"## Install dependencies for '{subdir}'")
|
if os.path.isdir(full_path) and not subdir.endswith(".disabled") and not subdir.startswith('.') and subdir != '__pycache__':
|
||||||
requirements_file = os.path.join(full_path, "requirements.txt")
|
print(f"## Install dependencies for '{subdir}'")
|
||||||
install_script = os.path.join(full_path, "install.py")
|
requirements_file = os.path.join(full_path, "requirements.txt")
|
||||||
|
install_script = os.path.join(full_path, "install.py")
|
||||||
|
|
||||||
if os.path.isfile(requirements_file) and os.path.isfile(install_script):
|
if os.path.isfile(requirements_file) and os.path.isfile(install_script):
|
||||||
subdirs_with_files.append((full_path, requirements_file, install_script))
|
subdirs_with_files.append((full_path, requirements_file, install_script))
|
||||||
|
except Exception as e:
|
||||||
|
print(f"EXCEPTION During Dependencies INSTALL on '{subdir}':\n{e}")
|
||||||
|
|
||||||
return subdirs_with_files
|
return subdirs_with_files
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user