File Handling in Paver (paver.path) — Paver 1.3.4 documentation

# File Handling in Paver (paver.path)

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

`paver.path.` `pushd`(dir)

  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...