File Handling in Paver (paver.path)¶
Wrapper around path.py to add dry run support and other paver integration.
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 * @task def my_task(): with pushd('new/directory') as old_dir: ...do stuff...