def clean():
    """TODO: Clean the build stuff etc...
    """
    # removing compiled files
    [rm(f) for f in find("*.pyc")]
    [rm(f) for f in find("*.elc")]
    
    rm("dist")
Beispiel #2
0
def clean():
    """TODO: Clean the build stuff etc...
    """
    # removing compiled files
    rm(find("*.pyc"))
    rm(find('*.elc'))
    
    if os.path.exists("dist"):
        rm("dist")
def rm_silent(src):
    """Remove if the file exists.

    """
    if os.path.exists(src):
            rm(src)
 def tearDown(self):
     rm("testdir")
 def test_dir_nested(self):
     """
     """
     make_dir_structure()
     rm("testdir")
     self.assertFalse(os.path.exists("testdir"))
 def tearDown(self):
     if os.path.exists("testdir"):
         rm("testdir")
 def test_file(self):
     """Testing the file removal"""
     touch("test.txt")
     self.assert_(os.path.exists("test.txt"))
     rm("test.txt")
 def test_dir(self):
     """Testing the directory removal
     """
     mkdir("testdir")
     rm("testdir")
     self.assertFalse(os.path.exists("testdir"))