diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-05-09 21:18:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-05-09 21:18:57 +0400 |
commit | 6d8cb93f71b5fb3b0d1638378e0cd56696337cbe (patch) | |
tree | ead33e6a28899cd1bcafb5ac126bf1076ec5936f /source/blender/python/doc/sphinx_doc_gen.py | |
parent | 46a40c990552ad8691d4a070617be407efea1094 (diff) |
building docs failed when the output directory didnt alredy exist.
Diffstat (limited to 'source/blender/python/doc/sphinx_doc_gen.py')
-rw-r--r-- | source/blender/python/doc/sphinx_doc_gen.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/doc/sphinx_doc_gen.py b/source/blender/python/doc/sphinx_doc_gen.py index 96e31e01f8e..f9260cd70e5 100644 --- a/source/blender/python/doc/sphinx_doc_gen.py +++ b/source/blender/python/doc/sphinx_doc_gen.py @@ -669,6 +669,9 @@ if __name__ == '__main__': # only for partial updates path_in_tmp = path_in + "-tmp" + if not os.path.exists(path_in): + os.mkdir(path_in) + for f in os.listdir(path_examples): if f.endswith(".py"): EXAMPLE_SET.add(os.path.splitext(f)[0]) |