MCPcopy
hub / github.com/pythongosssss/ComfyUI-Custom-Scripts / init

Function init

pysssss.py:160–173  ·  view source on GitHub ↗
(check_imports=None)

Source from the content-addressed store, hash-verified

158
159
160def init(check_imports=None):
161 log("Init")
162
163 if check_imports is not None:
164 import importlib.util
165 for imp in check_imports:
166 spec = importlib.util.find_spec(imp)
167 if spec is None:
168 log(f"{imp} is required, please check requirements are installed.",
169 type="ERROR", always=True)
170 return False
171
172 install_js()
173 return True
174
175
176def get_async_loop():

Callers 1

__init__.pyFile · 0.70

Calls 2

logFunction · 0.85
install_jsFunction · 0.85

Tested by

no test coverage detected