Skip to content

Commit

Permalink
script to clean up example builds
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Oct 30, 2017
1 parent d95abb6 commit 698fefb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/clean.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""Script to remove build/ directories from all examples.
"""
import os, shutil

examples_dir = os.path.dirname(os.path.abspath(__file__))

for d in os.listdir('.'):
build_dir = os.path.join(examples_dir, d, 'build')
if os.path.isdir(build_dir):
print("Removing {}/build".format(d))
shutil.rmtree(build_dir)

0 comments on commit 698fefb

Please sign in to comment.