From f0472f7bfe99680f5ecf555d2242513a2261a085 Mon Sep 17 00:00:00 2001 From: kinghuin Date: Mon, 16 Mar 2020 10:13:34 +0800 Subject: [PATCH] real path (#445) --- paddlehub/module/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddlehub/module/manager.py b/paddlehub/module/manager.py index f555a198e..916e12602 100644 --- a/paddlehub/module/manager.py +++ b/paddlehub/module/manager.py @@ -61,7 +61,8 @@ def check_module_valid(self, module_path): "name"].s return True, info else: - module_file = os.path.join(module_path, 'module.py') + module_file = os.path.realpath( + os.path.join(module_path, 'module.py')) if os.path.exists(module_file): basename = os.path.split(module_path)[-1] dirname = os.path.join(