fix for androids

This commit is contained in:
n1nj4sec 2016-01-21 19:19:46 +01:00
parent e393a42be7
commit d82602126f
2 changed files with 7 additions and 1 deletions

View File

@ -56,6 +56,12 @@ class PupyClient(object):
def is_unix(self): def is_unix(self):
return not self.is_windows() return not self.is_windows()
def is_linux(self):
return "linux" in self.desc["platform"].lower()
def is_android(self):
return self.desc["platform"].lower()=="android"
def is_windows(self): def is_windows(self):
if "windows" in self.desc["platform"].lower(): if "windows" in self.desc["platform"].lower():
return True return True

View File

@ -101,7 +101,7 @@ class PupyServer(threading.Thread):
pass pass
try: try:
from kivy.utils import platform as kivy_plat#support for android from kivy.utils import platform as kivy_plat#support for android
plat=kivy_plat plat=bytes(kivy_plat)
except ImportError: except ImportError:
pass pass
try: try: