pytest_wdl/utils.py
def chdir(todir: Path):
    """
    Context manager that temporarily changes directories.

    Args:
        todir: The directory to change to.
    """
    curdir = Path.cwd()
    try:
        os.chdir(todir)
        yield todir
    finally:
        os.chdir(curdir)

    Context manager that temporarily changes directories.

    Args:
        todir: The directory to change to.
    
Context manager that temporarily changes directories.
Context manager that temporarily changes directories .
def chdir(todir: Path):
    curdir = Path.cwd()
    try:
        os.chdir(todir)
        yield todir
    finally:
        os.chdir(curdir)
def chdir ( todir : Path ) : curdir = Path . cwd ( ) try : os . chdir ( todir ) yield todir finally : os . chdir ( curdir )
Context manager that temporarily changes directories.
Context manager that temporarily changes directories .
"""
    Context manager that temporarily changes directories.

    Args:
        todir: The directory to change to.
    """
todir
Path
The directory to change to.
The directory to change to .