# HG changeset patch # User Goffi # Date 1571208647 -7200 # Node ID 834d5c267219cacbdffc297f15ae7e2bad8032d0 # Parent 4b0fa73caad46ece4480bc32fb042c8b08adf56b core: fixed state encoding + PLUGIN_EXT on Android following Python 3 port diff -r 4b0fa73caad4 -r 834d5c267219 cagou/core/cagou_main.py --- a/cagou/core/cagou_main.py Wed Oct 16 08:50:34 2019 +0200 +++ b/cagou/core/cagou_main.py Wed Oct 16 08:50:47 2019 +0200 @@ -90,12 +90,12 @@ # sys.platform is "linux" on android by default # so we change it to allow backend to detect android sys.platform = "android" - C.PLUGIN_EXT = 'pyo' + C.PLUGIN_EXT = 'pyc' SOCKET_DIR = "/data/data/org.salutatoi.cagou/" SOCKET_FILE = ".socket" - STATE_RUNNING = "running" - STATE_PAUSED = "paused" - STATE_STOPPED = "stopped" + STATE_RUNNING = b"running" + STATE_PAUSED = b"paused" + STATE_STOPPED = b"stopped" ## General Configuration ## diff -r 4b0fa73caad4 -r 834d5c267219 service/main.py --- a/service/main.py Wed Oct 16 08:50:34 2019 +0200 +++ b/service/main.py Wed Oct 16 08:50:47 2019 +0200 @@ -33,7 +33,7 @@ # sys.platform is "linux" on android by default # so we change it to allow backend to detect android sys.platform = "android" - C.PLUGIN_EXT = "pyo" + C.PLUGIN_EXT = "pyc" from sat.core import sat_main from twisted.internet import reactor