未验证 提交 e5e8afc3 编写于 作者: B Bin Long 提交者: GitHub

Merge pull request #249 from ShenYuhan/add_module_dir_version

add module_dir version
......@@ -129,7 +129,10 @@ class Module(object):
self._init_with_module_file(module_dir=module_dir[0])
lock.flock(fp_lock, lock.LOCK_UN)
name = module_dir[0].split("/")[-1]
version = module_dir[1]
if len(module_dir) > 1:
version = module_dir[1]
else:
version = default_module_manager.search_module(name)[1]
elif signatures:
if processor:
if not issubclass(processor, BaseProcessor):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册