From ccfc3c535ed7e55a3515ab37e66b0436363fe663 Mon Sep 17 00:00:00 2001 From: gze Date: Wed, 19 Jul 2017 12:53:43 +0000 Subject: [PATCH] fixed gi.notify import --- w.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/w.py b/w.py index 964bf99..88694f3 100644 --- a/w.py +++ b/w.py @@ -130,6 +130,8 @@ print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" # the part for notification on linux, extra check up for mac if os.name is "posix" and platform.system() == "Linux": + import gi + gi.require_version('Notify', '0.7') from gi.repository import Notify notification_text = (name + "\n" + temperature + " C\n" + str(int(wind) * 3.6) + " km/h\n Conditions: " + str(conditions))