comparison sat/plugins/plugin_misc_android.py @ 2756:1048d8dc8a9d

plugin android: fixed path for .cagou_status
author Goffi <goffi@goffi.org>
date Fri, 04 Jan 2019 19:12:43 +0100
parents 56f94936df1e
children 003b8b4b56a7
comparison
equal deleted inserted replaced
2755:12d1ca646af1 2756:1048d8dc8a9d
67 67
68 def __init__(self, host): 68 def __init__(self, host):
69 log.info(_("plugin Android initialization")) 69 log.info(_("plugin Android initialization"))
70 self.host = host 70 self.host = host
71 host.memory.updateParams(self.params) 71 host.memory.updateParams(self.params)
72 self.cagou_status_fd = open(".cagou_status", "rb") 72 self.cagou_status_fd = open("app/.cagou_status", "rb")
73 self.cagou_status = mmap.mmap( 73 self.cagou_status = mmap.mmap(
74 self.cagou_status_fd.fileno(), 1, prot=mmap.PROT_READ 74 self.cagou_status_fd.fileno(), 1, prot=mmap.PROT_READ
75 ) 75 )
76 # we set a low priority because we want the notification to be sent after all plugins have done their job 76 # we set a low priority because we want the notification to be sent after all plugins have done their job
77 host.trigger.add("MessageReceived", self.messageReceivedTrigger, priority=-1000) 77 host.trigger.add("MessageReceived", self.messageReceivedTrigger, priority=-1000)