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(