Only import ap_ctl if Pexpect_serial is installed, because of Windows incompatibility issues

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-11-04 17:33:04 -07:00
parent 468279aef2
commit cce2d22456

View File

@@ -58,7 +58,10 @@ from .py_dashboard import *
from .py_json import *
from .py_json import LANforge
from .py_json.LANforge import *
from . import ap_ctl
try:
from . import ap_ctl
except ImportError:
print('Pexpect_serial is not installed')
from . import emailHelper
from . import lf_mail
from . import lf_tos_plus_test