Change path of rendered images using Python?

Hi,

I’m a PhD student and working with my school to set up a render farm for our animation class. We’re wanting to set up a .blend to a predefined standard. Mainly we want to set the output directory of the rendered images to a default location. I was wondering if there is a way to set the output directory for the rendered images using Python? I would like to do this from the command line. If there is a way to do this then I will dig into it a little better and actually learn Python.

Thanks in advance,
James

“setRenderPath” function :
http://www.blender.org/modules/documentation/236PythonDoc/Render-module.html
examples :

http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_mesh3d2uv2d.htm
http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_saverenderfile.htm

thanks that helped a lot

James