~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to tools/scons/bs/bs_clean.py

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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"
 
 
b'\\ No newline at end of file'