changeset 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 0a92958eea80
files cagou/core/cagou_main.py service/main.py
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 ##
--- 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