()
Temporary CD Helper
Temporary CD Helper
Temporary CD Helper
def temp_cd():
    """Temporary CD Helper"""
    cwd = os.getcwd()
    with TemporaryDirectory() as td:
        try:
            os.chdir(td)
            yield
        finally:
            os.chdir(cwd)
def temp_cd ( ) : cwd = os . getcwd ( ) with TemporaryDirectory ( ) as td : try : os . chdir ( td ) yield finally : os . chdir ( cwd )