Core documentation index should really be at the root

This commit is contained in:
Lonami Exo
2017-04-08 14:07:36 +02:00
parent df7f4bc47c
commit 9428e73891
3 changed files with 10 additions and 10 deletions

View File

@@ -227,7 +227,10 @@ class DocsWriter:
# With block
def __enter__(self):
# Sanity check
os.makedirs(os.path.dirname(self.filename), exist_ok=True)
parent = os.path.dirname(self.filename)
if parent:
os.makedirs(parent, exist_ok=True)
self.handle = open(self.filename, 'w', encoding='utf-8')
return self