Set or query the model’s current partition. When flag qis not used, a partion name must be passed as an argument. In this case the current partition is set to that name.
Derived from mel command maya.cmds.renderPartition
Example:
import pymel.core as pm
import maya.cmds as cmds
# Query the current render partition
pm.renderPartition( q=True )
# Result: u'renderPartition' #
# Set the current render partition to "foofoo"
pm.renderPartition( 'foofoo' )