def setup_growl(app_name, icon, alert_function):

    global alert
    Options.icon = None

    alert = alert_function

    try:
        assert(icon is not None and exists(icon))
        with open(icon, "rb") as f:
            Options.icon = f.read()
    except Exception:
        pass

    try:
        # Init growl object
        Options.growl = gntp.notifier.GrowlNotifier(
            applicationName=app_name,
            notifications=["Info", "Warning", "Error"],
            defaultNotifications=["Info", "Warning", "Error"]
        )

        Options.growl.register()
    except Exception:
        Options.growl = None

    if Options.growl is not None:
        Options.notify = notify_growl_call
Setup growl.
dataset/ETHPy150Open facelessuser/SubNotify/lib/notify/notify_growl.py/setup_growl