X Tutup
Skip to content

Commit c160430

Browse files
committed
Auto cleanup in the examples/ directory, so that build scripts
do not include trash directories. See Issue cztomczak#432.
1 parent 7748208 commit c160430

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tools/common.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,25 @@
175175
UNITTESTS_DIR = os.path.abspath(os.path.join(ROOT_DIR, "unittests"))
176176
# ----------------------------------------------------------------------------
177177

178+
179+
# Auto cleanup in the examples/ directory, so that build scripts
180+
# do not include trash directories. See Issue #432.
181+
182+
shutil.rmtree(os.path.join(EXAMPLES_DIR, "blob_storage"),
183+
ignore_errors=True)
184+
shutil.rmtree(os.path.join(EXAMPLES_DIR, "webrtc_event_logs"),
185+
ignore_errors=True)
186+
shutil.rmtree(os.path.join(EXAMPLES_DIR, "webcache"),
187+
ignore_errors=True)
188+
189+
shutil.rmtree(os.path.join(SNIPPETS_DIR, "blob_storage"),
190+
ignore_errors=True)
191+
shutil.rmtree(os.path.join(SNIPPETS_DIR, "webrtc_event_logs"),
192+
ignore_errors=True)
193+
shutil.rmtree(os.path.join(SNIPPETS_DIR, "webcache"),
194+
ignore_errors=True)
195+
196+
178197
# cefpython API header file and a fixed copy of it
179198
CEFPYTHON_API_HFILE = os.path.join(BUILD_CEFPYTHON,
180199
"cefpython_py{pyver}.h"

0 commit comments

Comments
 (0)
X Tutup