Skip to content

Commit 9c01e43

Browse files
committed
config: mkdir -p $(basename)
1 parent a05ecf4 commit 9c01e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocrd/ocrd/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def load_config_file():
1414
"""
1515
fpath = Path(XDG_CONFIG_HOME, 'ocrd', 'config.yml')
1616
if not fpath.parent.exists():
17-
fpath.parent.mkdir()
17+
fpath.parent.mkdir(parents=True)
1818
obj = DEFAULT_CONFIG
1919
if not fpath.exists():
2020
with open(str(fpath), 'w', encoding='utf-8') as f_out:

0 commit comments

Comments
 (0)