INNER CODE UNIT · Python

__preflight_check__

thevickypedia/Jarvis · jarvis/__init__.py:9

def __preflight_check__() -> Callable:
    """Startup validator that imports Jarvis' main module to validate all dependencies' installation status.

    Returns:
        Callable:
        Returns the ``start`` function.
    """
    try:
        import pynotification  # noqa: F401

        from ._preexec import keywords_handler  # noqa: F401
        from .main import start  # noqa: F401
    except ImportError:
        try:
            # noinspection PyUnboundLocalVariable
            pynotification.pynotifier(
                title="First time user?",
                dialog=True,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…