diff --git a/paddlehub/commands/show.py b/paddlehub/commands/show.py index d2f53ce11a83dd2ec16831c5cd2b97adeabb30e6..c34950b823544882925cae99568202952aa093a0 100644 --- a/paddlehub/commands/show.py +++ b/paddlehub/commands/show.py @@ -127,6 +127,8 @@ class ShowCommand(BaseCommand): cwd = os.getcwd() module_dir = default_module_manager.search_module(module_name) + module_dir = (os.path.join(cwd, module_name), + None) if not module_dir else module_dir if not module_dir or not os.path.exists(module_dir[0]): print("%s is not existed!" % module_name) return True