pymel.core.system.renameFile

renameFile(newname, *args, **kwargs)

Rename the scene. Used mostly during save to set the saveAs name. Returns the new name of the scene.

Derived from mel command maya.cmds.file