mirror of https://github.com/n1nj4sec/pupy.git
fix for androids
This commit is contained in:
parent
e393a42be7
commit
d82602126f
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue