(module_name: str, file_path: str)
| 33 | |
| 34 | |
| 35 | def _import_from_file(module_name: str, file_path: str): |
| 36 | spec = _ilu.spec_from_file_location(module_name, file_path) |
| 37 | mod = _ilu.module_from_spec(spec) |
| 38 | spec.loader.exec_module(mod) |
| 39 | return mod |
| 40 | |
| 41 | |
| 42 | _DEMO_RENDER_DIR = Path(__file__).resolve().parents[1] |