Create sphinx build dirs that don't already exist.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2014-04-19 21:24:20 +00:00
parent e30d04e4e0
commit bb10ffb496
2 changed files with 6 additions and 1 deletions

View File

@@ -1401,7 +1401,10 @@ class Snippet(Node):
"""
docstrings = ''
if not os.path.exists(os.path.dirname(self.cpp_file)):
os.makedirs(os.path.dirname(self.cpp_file))
fid = open(self.cpp_file, 'wt')
fid.write(self.snippet)
fid.close()

View File

@@ -237,6 +237,8 @@ class InheritanceDiagram(object):
"""
static_root = INHERITANCEROOT
if not os.path.exists(static_root):
os.makedirs(static_root)
if self.main_class is not None:
filename = self.main_class.name