comparison 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
comparison
equal deleted inserted replaced
358:8efed1d47d9f 359:38d763febed6
34 # so we change it to allow backend to detect android 34 # so we change it to allow backend to detect android
35 sys.platform = "android" 35 sys.platform = "android"
36 C.PLUGIN_EXT = "pyc" 36 C.PLUGIN_EXT = "pyc"
37 from sat.core import sat_main 37 from sat.core import sat_main
38 from twisted.internet import reactor 38 from twisted.internet import reactor
39 from twisted.application import app, service
39 40
40 sat = sat_main.SAT() 41 sat = sat_main.SAT()
42 application = service.Application("SàT backend")
43 sat.setServiceParent(application)
44 app.startApplication(application, None)
41 reactor.run() 45 reactor.run()