未验证 提交 f0472f7b 编写于 作者: K kinghuin 提交者: GitHub

real path (#445)

上级 223cd2f6
...@@ -61,7 +61,8 @@ class LocalModuleManager(object): ...@@ -61,7 +61,8 @@ class LocalModuleManager(object):
"name"].s "name"].s
return True, info return True, info
else: 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): if os.path.exists(module_file):
basename = os.path.split(module_path)[-1] basename = os.path.split(module_path)[-1]
dirname = os.path.join( dirname = os.path.join(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册