fix for bug 3970
[blender-staging.git] / tools / scons / bs / bs_clean.py
1 # the clean target
2
3 import os
4 import shutil
5
6 def DoClean(dir2clean):
7         """
8         Do a removal of the root_build_dir the fast way
9         """
10         
11         print "start the clean"
12         dirs = os.listdir(dir2clean)
13         for dir in dirs:
14                 if os.path.isdir(dir2clean + "/" + dir) == 1:
15                         print "clean dir %s"%(dir2clean+"/" + dir)
16                         shutil.rmtree(dir2clean+"/" + dir)
17         print "done"