()
return extensions
Returns a dict indicating for each extension whether it is enabled
    and provides a message.
    Handles both service and user mopidy instances.
Returns a dict indicating for each extension whether it is enabled
    and provides a message.
    Handles both service and user mopidy instances.
Returns a dict indicating for each extension whether it is enabled and provides a message . Handles both service and user mopidy instances .
def check_mopidy_extensions() -> Dict[str, Tuple[bool, str]]:
    """Returns a dict indicating for each extension whether it is enabled
    and provides a message.
    Handles both service and user mopidy instances."""
    try:
        subprocess.check_call(
            ["systemctl", "is-active", "mopidy"], stdout=subprocess.DEVNULL
        )
    except subprocess.CalledProcessError:
        extensions = _check_mopidy_extensions_user()
    else:
        extensions = _check_mopidy_extensions_service()
    return extensions
def check_mopidy_extensions ( ) -> Dict [ str , Tuple [ bool , str ] ] : try : subprocess . check_call ( [ "systemctl" , "is-active" , "mopidy" ] , stdout = subprocess . DEVNULL ) except subprocess . CalledProcessError : extensions = _check_mopidy_extensions_user ( ) else : extensions = _check_mopidy_extensions_service ( ) return extensions