提交 5d6cab99 编写于 作者: W wuzewu

Fix the problem of creating hub directory

上级 7d74dc26
......@@ -52,8 +52,7 @@ def _get_hub_home():
def _get_sub_home(directory):
home = os.path.join(_get_hub_home(), directory)
if not os.path.exists(home):
os.makedirs(home)
os.makedirs(home, exist_ok=True)
return home
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册