提交 b5ccd7fe 编写于 作者: S shenyuhan

add module_dir version

上级 f68214c9
......@@ -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.
先完成此消息的编辑!
想要评论请 注册