From 49a88d375455086bbe55ee937e6593dd32db8285 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 19 Mar 2021 13:49:27 -0700 Subject: [PATCH] Create out dir if it does not exist. Test: ./build_ndk_docs.py Bug: None Change-Id: I47a31b42df4bf555c95f5abde2b0c86e64a32d57 --- tools/ndk/build_ndk_docs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ndk/build_ndk_docs.py b/tools/ndk/build_ndk_docs.py index 9a36362b3..6234434da 100755 --- a/tools/ndk/build_ndk_docs.py +++ b/tools/ndk/build_ndk_docs.py @@ -55,6 +55,7 @@ def generate_docs() -> None: html_dir = out_dir / 'html' input_dir = product_out.parents[2] / 'soong/ndk/sysroot/usr/include' doxyfile_template = ANDROID_TOP / 'frameworks/native/docs/Doxyfile' + out_dir.mkdir(parents=True, exist_ok=True) doxyfile = out_dir / 'Doxyfile' doxyfile_contents = doxyfile_template.read_text()