From c160430867ab55a9dcee5e4855852da6f95d9a1a Mon Sep 17 00:00:00 2001 From: cztomczak Date: Wed, 22 Aug 2018 11:26:24 +0200 Subject: [PATCH] Auto cleanup in the examples/ directory, so that build scripts do not include trash directories. See Issue #432. --- tools/common.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tools/common.py b/tools/common.py index ec92b0fe..4bee285f 100644 --- a/tools/common.py +++ b/tools/common.py @@ -175,6 +175,25 @@ UNITTESTS_DIR = os.path.abspath(os.path.join(ROOT_DIR, "unittests")) # ---------------------------------------------------------------------------- + +# Auto cleanup in the examples/ directory, so that build scripts +# do not include trash directories. See Issue #432. + +shutil.rmtree(os.path.join(EXAMPLES_DIR, "blob_storage"), + ignore_errors=True) +shutil.rmtree(os.path.join(EXAMPLES_DIR, "webrtc_event_logs"), + ignore_errors=True) +shutil.rmtree(os.path.join(EXAMPLES_DIR, "webcache"), + ignore_errors=True) + +shutil.rmtree(os.path.join(SNIPPETS_DIR, "blob_storage"), + ignore_errors=True) +shutil.rmtree(os.path.join(SNIPPETS_DIR, "webrtc_event_logs"), + ignore_errors=True) +shutil.rmtree(os.path.join(SNIPPETS_DIR, "webcache"), + ignore_errors=True) + + # cefpython API header file and a fixed copy of it CEFPYTHON_API_HFILE = os.path.join(BUILD_CEFPYTHON, "cefpython_py{pyver}.h"