def _add_to_filemenu():
import os<EOL>import pyblish<EOL>from maya import cmds<EOL>for item in ("<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>"):<EOL><INDENT>if cmds.menuItem(item, exists=True):<EOL><INDENT>cmds.deleteUI(item, menuItem=True)<EOL><DEDENT><DEDENT>icon = os.path.dirname(pyblish.__file__)<EOL>icon = os.path.join(icon, "<STR_LIT>", "<STR_LIT>")<EOL>cmds.menuItem("<STR_LIT>",<EOL>divider=True,<EOL>insertAfter="<STR_LIT>",<EOL>parent="<STR_LIT>")<EOL>cmds.menuItem("<STR_LIT>",<EOL>insertAfter="<STR_LIT>",<EOL>label="<STR_LIT>",<EOL>parent="<STR_LIT>",<EOL>image=icon,<EOL>command="<STR_LIT>")<EOL>cmds.menuItem("<STR_LIT>",<EOL>insertAfter="<STR_LIT>",<EOL>parent="<STR_LIT>",<EOL>divider=True)<EOL>
Helper function for the above :func:add_to_filemenu()

    This function is serialised into a string and passed on
    to evalDeferred above.