def _purge(self):
    if self.scratch_path:
        try:
            log.info('Purging scratch path %s', self.scratch_path)
            os.system(('/bin/rm -rf ' + self.scratch_path))
        except IOError:
            log.error('Failed to purge scratch directory %s', self.scratch_path)
def _purge(self):
    if self.scratch_path:
        try:
            log.info('Purging scratch path %s', self.scratch_path)
            os.system(('/bin/rm -rf ' + self.scratch_path))
        except IOError:
            log.error('Failed to purge scratch directory %s', self.scratch_path)