@pytest.yield_fixture(scope='session')
def project_home():
    tmpdir = os.environ.get('TMPDIR', gettempdir())
    project = Path(tmpdir) / 'PROJECT_HOME'
    os.environ['PROJECT_HOME'] = str(project)

    rmtree(str(project), ignore_errors=True)
    project.mkdir(parents=True)
    yield project
    rmtree(str(project))
dataset/ETHPy150Open berdario/pew/tests/test_project.py/project_home/original