Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bs_clean.py « bs « scons « tools - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e3d8c9929c24c706fca8078822f043d808b24852 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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"