(check_imports=None)
| 158 | |
| 159 | |
| 160 | def 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 | |
| 176 | def get_async_loop(): |
no test coverage detected