mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
examples, tools: Fix Python3 deprecation warning for the imp module
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user