mkdir with exist_ok flag

This commit is contained in:
Sean Breckenridge 2021-05-16 16:19:22 -07:00
parent d7476dc4c5
commit df81dcb145

View file

@ -82,8 +82,7 @@ class Config(user_config):
else:
tpath = Path(tdir)
tpath = tpath.expanduser()
if not tpath.exists():
tpath.mkdir(parents=True)
tpath.mkdir(parents=True, exist_ok=True)
return tpath
def _is_module_active(self, module: str) -> Optional[bool]: