def helpMenuItem(toolName, file):
	"""
	Create a menu item that links to the appropriate page in the online docs.
	@param toolName Name of the tool
	@param file The __file__ string for the tool
	"""
	cmds.menuItem(label='Help on %s Options'%toolName, 
		command='cmds.launch(web="http://adammechtley.com/downloads/python/documentation/amtools/%s/namespace%s.html")'%(am.kVersionNumber,
		re.sub('[A-Z]', '_\g<0>', re.search('amTools.*(?<=[.])', file[file.rfind('amTools'):]).group(0)[:-1]).lower().replace('/', '_1_1')))
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/amTools/utilities/ui.py/helpMenuItem/original