def __enter__(self):
        try:
            os.mkdir(self.path)
        except __HOLE__ as e:
            if e.errno != 17:  # File exists
                raise
            shutil.rmtree(self.path)
            os.mkdir(self.path)
        finally:
            os.chdir(self.path)
        return self
dataset/ETHPy150Open ffunenga/pipgh/pipgh/tools.py/TempDirContext.__enter__