def cleanup(self): try: from tempfile import _exists if _exists(self.name): _rmtree(self.name) except ImportError: pass
def cleanup(self): if _exists(self.name): _rmtree(self.name)
def tearDown(): """ delete the directory created for the temporary files """ if tempfile._exists(tmpdir): shutil.rmtree(tmpdir)
def cleanup(dirname): """ Delete temp directory for so that no overlap with other builds. """ if _exists(dirname): _rmtree(dirname)
def update_event(self, inp=-1): self.set_output_val(0, tempfile._exists(self.input(0)))