Files
ahernandezmiro-ComfyUI-GCP_…/__init__.py
T
2024-12-30 19:28:01 +01:00

19 lines
523 B
Python

import importlib
import pip
def install_gcp_storage():
print("Checking for google-cloud-storage installation..")
try:
importlib.import_module("google.cloud.storage")
except ImportError:
print("google-cloud-storage not found. Installing...")
pip.main(["install", "google-cloud-storage"])
install_gcp_storage()
from .gcp_storage_tools import NODE_CLASS_MAPPINGS
from .gcp_storage_tools import NODE_DISPLAY_NAME_MAPPINGS
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']