This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/tools/scons/bs/bs_clean.py
2004-09-25 20:45:44 +00:00

17 lines
348 B
Python

# the clean target
import os
import shutil
def DoClean(dir2clean):
"""
Do a removal of the root_build_dir the fast way
"""
print "start the clean"
dirs = os.listdir(dir2clean)
for dir in dirs:
if os.path.isdir(dir2clean + "/" + dir) == 1:
print "clean dir %s"%(dir2clean+"/" + dir)
shutil.rmtree(dir2clean+"/" + dir)
print "done"