Somehow the string interpolation needs to be turned off -
from paver.easy import *
sh("echo %foobar")
produces
Traceback (most recent call last):
File "/home/drw900/venvs/mypy/bin/paver", line 8, in <module>
load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
File "/home/drw900/venvs/mypy/lib/python2.6/site-packages/
Paver-1.0.1-py2.6.egg/paver/tasks.py", line 615, in main
_launch_pavement(args)
File "/home/drw900/venvs/mypy/lib/python2.6/site-packages/
Paver-1.0.1-py2.6.egg/paver/tasks.py", line 595, in _launch_pavement
execfile(environment.pavement_file, mod.__dict__)
File "pavement.py", line 2, in <module>
sh("echo %foobar")
File "/home/drw900/venvs/mypy/lib/python2.6/site-packages/
Paver-1.0.1-py2.6.egg/paver/easy.py", line 55, in sh
return dry(command, runpipe)
File "/home/drw900/venvs/mypy/lib/python2.6/site-packages/
Paver-1.0.1-py2.6.egg/paver/easy.py", line 13, in dry
info(message)
File "/home/drw900/venvs/mypy/lib/python2.6/site-packages/
Paver-1.0.1-py2.6.egg/paver/easy.py", line 25, in info
tasks.environment.info(message, *args)
File "/home/drw900/venvs/mypy/lib/python2.6/site-packages/
Paver-1.0.1-py2.6.egg/paver/tasks.py", line 45, in info
self._log(2, message, args)
File "/home/drw900/venvs/mypy/lib/python2.6/site-packages/
Paver-1.0.1-py2.6.egg/paver/tasks.py", line 54, in _log
output = message % args
TypeError: not enough arguments for format string
-Drew