File Handling in Paver (paver.path)

Wrapper around to add dry run support and other paver integration.

paver.path.pushd(*args, **kwds)

A context manager for stepping into a directory and automatically coming back to the previous one. The original directory is returned. Usage is like this:

from paver.easy import *

def my_task():
    with pushd('new/directory') as old_dir: stuff...