#! -*- coding: utf-8 -*- # growlとか通知関連のモジュール # さらにnotify_growl, notify_pyあたりに分ける? try: import notify_growl g_notifyObject = notify_growl.GrowlNotify() print "use Growl" except: print "not found:Growl sdk" # ないのでpynotifyが使えるかどうか見る try: import notify_py g_notifyObject = notify_py.PyNotify() print "use pynotify" except: g_notifyObject = False print "not found:pynotify" class Notify(): def __init__(self): pass def Notify(self,title,desc,img): if g_notifyObject != False: g_notifyObject.Notify(title,desc,img)