From c8e2f4663dad70f7bd0bb55fa285e5fa285b702d Mon Sep 17 00:00:00 2001 From: chenjian Date: Wed, 16 Nov 2022 14:04:24 +0800 Subject: [PATCH] [Bug Fix] fix import error in python3.6 (#608) fix import error in python3.6 --- python/fastdeploy/utils/example_resource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/fastdeploy/utils/example_resource.py b/python/fastdeploy/utils/example_resource.py index 682a07f2b..d6dd68697 100644 --- a/python/fastdeploy/utils/example_resource.py +++ b/python/fastdeploy/utils/example_resource.py @@ -12,12 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. import fastdeploy as fd -import fastdeploy.utils.hub_env as hubenv +from . import hub_env def get_detection_test_image(path=None): if path is None: - path = hubenv.RESOURCE_HOME + path = hub_env.RESOURCE_HOME fullpath = fd.download( url='https://bj.bcebos.com/paddlehub/fastdeploy/example/detection_test_image.jpg', path=path)