[Python] Save art3dPaintCtx image file externally

Currently I’m using Maya’s 3D Paint Tool to draw textures on geometry. It works really nice, but I’m unable to save the outcoming painted image to a custom directory of choice.

Maya seems to force it to “sourceimages/3dPaintTextures/…”

This location is defined in the project settings, but I want to save it to a custom directory with Python.

mc.art3dPaintCtx() has a ‘saveTexture’ flag, but that takes no arguments and just saves to the ‘disc’ a.k.a. the folder described earlier.

http://download.autodesk.com/global/docs/maya2013/en_us/Commands/index.html

Does anybody know a way to save the texture to a custom location, with Python, without adjusting the project settings?