def inside_dir(dirpath):
    """
    Execute code from inside the given directory
    :param dirpath: String, path of the directory the command is being run.
    """
    old_path = os.getcwd()
    try:
        os.chdir(dirpath)
        yield
    finally:
        os.chdir(old_path)

    Execute code from inside the given directory
    :param dirpath: String, path of the directory the command is being run.
    
tests/test_bake_project.py