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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/scons/bs/bs_clean.py')
-rw-r--r--tools/scons/bs/bs_clean.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/scons/bs/bs_clean.py b/tools/scons/bs/bs_clean.py
new file mode 100644
index 00000000000..e3d8c9929c2
--- /dev/null
+++ b/tools/scons/bs/bs_clean.py
@@ -0,0 +1,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" \ No newline at end of file