Skip to content

Commit

Permalink
Auto cleanup in the examples/ directory, so that build scripts
Browse files Browse the repository at this point in the history
do not include trash directories. See Issue #432.
  • Loading branch information
cztomczak committed Aug 22, 2018
1 parent 7748208 commit c160430
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tools/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c160430

Please sign in to comment.