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