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])