def RegisterHelpFile(helpFile, helpPath, helpDesc = None, bCheckFile = 1):
	"""Register a help file in the registry.
	
	     Note that this used to support writing to the Windows Help
	     key, however this is no longer done, as it seems to be incompatible.

           helpFile -- the base name of the help file.
           helpPath -- the path to the help file
           helpDesc -- A description for the help file.  If None, the helpFile param is used.
           bCheckFile -- A flag indicating if the file existence should be checked.
	"""
	if helpDesc is None: helpDesc = helpFile
	fullHelpFile = os.path.join(helpPath, helpFile)
	try:
		if bCheckFile: os.stat(fullHelpFile)
	except os.error:
		raise ValueError, "Help file does not exist"
	# Now register with Python itself.
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + helpDesc % "\\Help\\%s", win32con.REG_SZ, fullHelpFile)
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/win32/lib/regutil.py/RegisterHelpFile/swapped operands of `%`