mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 21:50:18 +00:00
Added Android platform detection
This commit is contained in:
parent
daf72f4237
commit
f5236878b0
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user