diff service/main.py @ 359:38d763febed6

android (service): fixed backend launch
author Goffi <goffi@goffi.org>
date Sat, 18 Jan 2020 23:12:52 +0100
parents 834d5c267219
children bbf992b0be0d
line wrap: on
line diff
--- a/service/main.py	Sat Jan 18 23:12:52 2020 +0100
+++ b/service/main.py	Sat Jan 18 23:12:52 2020 +0100
@@ -36,6 +36,10 @@
     C.PLUGIN_EXT = "pyc"
 from sat.core import sat_main
 from twisted.internet import reactor
+from twisted.application import app, service
 
 sat = sat_main.SAT()
+application = service.Application("SàT backend")
+sat.setServiceParent(application)
+app.startApplication(application, None)
 reactor.run()