def uninstall():
    if ENABLE_UNDO:
        cmds.flushUndo()
        shared.undo = None
        shared.redo = None
        shared.undos.clear()
        shared.redos.clear()
        sys.modules.pop(name, None)
        cmds.unloadPlugin(os.path.basename(__file__))
    self.installed = False
def uninstall():
    if ENABLE_UNDO:
        cmds.flushUndo()
        shared.undo = None
        shared.redo = None
        shared.undos.clear()
        shared.redos.clear()
        sys.modules.pop(name, None)
        cmds.unloadPlugin(os.path.basename(__file__))
    self.installed = False