From e4750c8e505174db2cba4238a99d55044d883f36 Mon Sep 17 00:00:00 2001 From: BinLong Date: Thu, 27 Jun 2019 16:38:51 +0800 Subject: [PATCH] fix bug while run a module in a special path --- paddlehub/commands/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlehub/commands/run.py b/paddlehub/commands/run.py index 4e77065f..a8af685d 100644 --- a/paddlehub/commands/run.py +++ b/paddlehub/commands/run.py @@ -59,7 +59,7 @@ class RunCommand(BaseCommand): module_dir = default_module_manager.search_module(module_name) if not module_dir: if os.path.exists(module_name): - module_dir = module_name + module_dir = (module_name, None) else: print("Install Module %s" % module_name) result, tips, module_dir = default_module_manager.install_module( -- GitLab