def RegisterHelpFile(helpFile, helpPath, helpDesc=None, bCheckFile=1):
 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')
 win32api.RegSetValue(GetRootKey(), (BuildDefaultPythonKey() + ('\\Help\\%s' % helpDesc)), win32con.REG_SZ, fullHelpFile)

def RegisterHelpFile ( helpFile , helpPath , helpDesc = None , bCheckFile = 1 ) : 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' ) win32api . RegSetValue ( GetRootKey ( ) , ( BuildDefaultPythonKey ( ) + ( '\\Help\\%s' % helpDesc ) ) , win32con . REG_SZ , fullHelpFile )
register a help file in the registry .