3 from __future__ import with_statement
10 sys.path.insert(0,"/usr/lib/dialcentral/")
17 def notify_on_change():
18 with open(constants._notifier_logpath_, "a") as file:
19 file.write("Notification: %r\n" % (datetime.datetime.now(), ))
21 config = ConfigParser.SafeConfigParser()
22 config.read(constants._user_settings_)
23 backend = alarm_notify.create_backend(config)
24 notifyUser = alarm_notify.is_changed(config, backend)
27 file.write("\tChange occurred\n")
30 if __name__ == "__main__":