From 6d8cb93f71b5fb3b0d1638378e0cd56696337cbe Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 9 May 2010 17:18:57 +0000 Subject: building docs failed when the output directory didnt alredy exist. --- source/blender/python/doc/sphinx_doc_gen.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/python/doc/sphinx_doc_gen.py') 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]) -- cgit v1.2.3