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:
|
else:
|
||||||
tpath = Path(tdir)
|
tpath = Path(tdir)
|
||||||
tpath = tpath.expanduser()
|
tpath = tpath.expanduser()
|
||||||
if not tpath.exists():
|
tpath.mkdir(parents=True, exist_ok=True)
|
||||||
tpath.mkdir(parents=True)
|
|
||||||
return tpath
|
return tpath
|
||||||
|
|
||||||
def _is_module_active(self, module: str) -> Optional[bool]:
|
def _is_module_active(self, module: str) -> Optional[bool]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue