examples, tools: Fix Python3 deprecation warning for the imp module

This commit is contained in:
Roland Dobai
2018-12-14 17:37:43 +01:00
parent 65142bc59e
commit 4ca2b149e5
7 changed files with 37 additions and 24 deletions

View File

@@ -18,7 +18,6 @@ from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import range
import imp
import re
import os
import sys
@@ -44,7 +43,7 @@ import Utility
# Import client module
expath = os.path.dirname(os.path.realpath(__file__))
client = imp.load_source("client", expath + "/scripts/client.py")
client = Utility.load_source("client", expath + "/scripts/client.py")
@IDF.idf_example_test(env_tag="Example_WIFI")