mkdir with exist_ok flag
This commit is contained in:
parent
d7476dc4c5
commit
df81dcb145
1 changed files with 1 additions and 2 deletions
|
@ -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]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue