diff --git a/paddlehub/module/manager.py b/paddlehub/module/manager.py index f555a198ed1a21a6ab78ee7e1be72ca9c1b8c236..916e126027d5105501d5d154188b2d5a3b611b25 100644 --- a/paddlehub/module/manager.py +++ b/paddlehub/module/manager.py @@ -61,7 +61,8 @@ class LocalModuleManager(object): "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(