Added Android platform detection

This commit is contained in:
Mark Qvist 2021-12-01 11:40:44 +01:00
parent daf72f4237
commit f5236878b0
2 changed files with 12 additions and 2 deletions

View File

@ -1,8 +1,14 @@
from .vendor.platformutils import get_platform
if get_platform() == "android":
# TODO: Selectively import Android-relevant interfaces
pass
else:
from .Interfaces import *
from .vendor.configobj import ConfigObj
import configparser
import multiprocessing.connection
import RNS
import signal
import threading
import atexit

View File

@ -67,6 +67,10 @@ def loglevelname(level):
def version():
return __version__
def host_os():
from .vendor.platformutils import get_platform
return get_platform()
def log(msg, level=3, _override_destination = False):
global _always_override_destination