mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-06-08 15:02:46 -04:00
Clean up importlib imports
This commit is contained in:
parent
f8925eaed1
commit
f9d42082a2
12 changed files with 14 additions and 14 deletions
|
@ -141,7 +141,7 @@ class RNodeMultiInterface(Interface):
|
|||
if RNS.vendor.platformutils.is_android():
|
||||
raise SystemError("Invalid interface type. The Android-specific RNode interface must be used on Android")
|
||||
|
||||
import importlib
|
||||
import importlib.util
|
||||
if importlib.util.find_spec('serial') != None:
|
||||
import serial
|
||||
else:
|
||||
|
@ -927,7 +927,7 @@ class RNodeSubInterface(Interface):
|
|||
if RNS.vendor.platformutils.is_android():
|
||||
raise SystemError("Invalid interface type. The Android-specific RNode interface must be used on Android")
|
||||
|
||||
import importlib
|
||||
import importlib.util
|
||||
if importlib.util.find_spec('serial') != None:
|
||||
import serial
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue