Mercurial > libervia-desktop-kivy
comparison cagou/core/cagou_main.py @ 318:834d5c267219
core: fixed state encoding + PLUGIN_EXT on Android following Python 3 port
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 16 Oct 2019 08:50:47 +0200 |
parents | 4b0fa73caad4 |
children | e2b51663d8b8 |
comparison
equal
deleted
inserted
replaced
317:4b0fa73caad4 | 318:834d5c267219 |
---|---|
88 | 88 |
89 # FIXME: move to separate android module | 89 # FIXME: move to separate android module |
90 # sys.platform is "linux" on android by default | 90 # sys.platform is "linux" on android by default |
91 # so we change it to allow backend to detect android | 91 # so we change it to allow backend to detect android |
92 sys.platform = "android" | 92 sys.platform = "android" |
93 C.PLUGIN_EXT = 'pyo' | 93 C.PLUGIN_EXT = 'pyc' |
94 SOCKET_DIR = "/data/data/org.salutatoi.cagou/" | 94 SOCKET_DIR = "/data/data/org.salutatoi.cagou/" |
95 SOCKET_FILE = ".socket" | 95 SOCKET_FILE = ".socket" |
96 STATE_RUNNING = "running" | 96 STATE_RUNNING = b"running" |
97 STATE_PAUSED = "paused" | 97 STATE_PAUSED = b"paused" |
98 STATE_STOPPED = "stopped" | 98 STATE_STOPPED = b"stopped" |
99 | 99 |
100 | 100 |
101 ## General Configuration ## | 101 ## General Configuration ## |
102 | 102 |
103 # we want white background by default | 103 # we want white background by default |