#!/usr/bin/env python3
"""
Uses approach described in UC_39_44_27_45.single_proto_kernel_per_repo.md.
"""

if __name__ == "__main__":

    proto_kernel_rel_path = "./cmd/proto_code/proto_kernel.py"

    # <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    # Boilerplate to import `proto_kernel` from `protoprimer`
    import os
    import importlib.util

    proto_spec = importlib.util.spec_from_file_location(
        "proto_kernel",
        os.path.join(
            os.path.dirname(__file__),
            proto_kernel_rel_path,
        ),
    )
    proto_kernel = importlib.util.module_from_spec(proto_spec)
    proto_spec.loader.exec_module(proto_kernel)
    # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

    proto_kernel.boot_env("local_repo.cmd_prime_env:custom_main")
