提交 59521dbb 编写于 作者: W wuzewu

Fix module install bug

上级 4784a3f2
......@@ -212,6 +212,7 @@ class LocalModuleManager(object):
fp.write(md5_value)
save_path = os.path.join(MODULE_HOME, module_name)
if save_path != module_dir:
if os.path.exists(save_path):
shutil.rmtree(save_path)
if from_user_dir:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册