Mercurial > libervia-backend
comparison src/plugins/plugin_misc_android.py @ 2145:33c8c4973743
core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 18:59:10 +0100 |
parents | fbeeba721954 |
children | 8b37a62336c3 |
comparison
equal
deleted
inserted
replaced
2144:1d3f73e065e1 | 2145:33c8c4973743 |
---|---|
25 import sys | 25 import sys |
26 import mmap | 26 import mmap |
27 | 27 |
28 | 28 |
29 PLUGIN_INFO = { | 29 PLUGIN_INFO = { |
30 "name": "Android ", | 30 C.PI_NAME: "Android ", |
31 "import_name": "android", | 31 C.PI_IMPORT_NAME: "android", |
32 "type": C.PLUG_TYPE_MISC, | 32 C.PI_TYPE: C.PLUG_TYPE_MISC, |
33 "main": "AndroidPlugin", | 33 C.PI_MAIN: "AndroidPlugin", |
34 "handler": "no", | 34 C.PI_HANDLER: "no", |
35 "description": D_("""Manage Android platform specificities, like pause or notifications""") | 35 C.PI_DESCRIPTION: D_("""Manage Android platform specificities, like pause or notifications""") |
36 } | 36 } |
37 | 37 |
38 if sys.platform != "android": | 38 if sys.platform != "android": |
39 raise exceptions.CancelError(u"this module is not needed on this platform") | 39 raise exceptions.CancelError(u"this module is not needed on this platform") |
40 | 40 |