How do you check for unsaved changes in pymel? In the maya cmds it's via the file-command:
import maya.cmds as cmds
print cmds.file(q=True, modified=True)
But "file" is not defined in pymel
print pymel.core.file(q=True, modified=True)
// Error: 'module' object has no attribute 'file'
# Traceback (most recent call last):
# File "<maya console>", line 3, in <module>
# AttributeError: 'module' object has no attribute 'file' //
Which makes sense, as pymel aims to be more "pythonesque". But i haven't found any replacement functionality for the "modified"-flag yet, neither in the pymel docs, nor via google. Has anyone more info?