Added Android platform detection
This commit is contained in:
parent
daf72f4237
commit
f5236878b0
@ -1,8 +1,14 @@
|
|||||||
from .Interfaces import *
|
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
|
from .vendor.configobj import ConfigObj
|
||||||
import configparser
|
import configparser
|
||||||
import multiprocessing.connection
|
import multiprocessing.connection
|
||||||
import RNS
|
|
||||||
import signal
|
import signal
|
||||||
import threading
|
import threading
|
||||||
import atexit
|
import atexit
|
||||||
|
@ -67,6 +67,10 @@ def loglevelname(level):
|
|||||||
def version():
|
def version():
|
||||||
return __version__
|
return __version__
|
||||||
|
|
||||||
|
def host_os():
|
||||||
|
from .vendor.platformutils import get_platform
|
||||||
|
return get_platform()
|
||||||
|
|
||||||
def log(msg, level=3, _override_destination = False):
|
def log(msg, level=3, _override_destination = False):
|
||||||
global _always_override_destination
|
global _always_override_destination
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user