def readWriteDeleteHypertextHelp(documentDirectoryPath, hypertextFileIndex, hypertextFiles, transferredFileNames):
 fileName = os.path.basename(hypertextFiles[hypertextFileIndex])
 print ('readWriteDeleteHypertextHelp ' + fileName)
 filePath = os.path.join(documentDirectoryPath, fileName)
 fileText = archive.getFileText(fileName)
 fileText = getWrappedHypertext(fileText, hypertextFileIndex, hypertextFiles)
 if (fileText.find('This page is in the table of contents.') > (-1)):
  fileText = fileText.replace('This page is in the table of contents.', '')
  transferredFileNames.append(fileName)
 archive.writeFileText(filePath, fileText)
 os.remove(fileName)

def readWriteDeleteHypertextHelp ( documentDirectoryPath , hypertextFileIndex , hypertextFiles , transferredFileNames ) : fileName = os . path . basename ( hypertextFiles [ hypertextFileIndex ] ) print ( 'readWriteDeleteHypertextHelp ' + fileName ) filePath = os . path . join ( documentDirectoryPath , fileName ) fileText = archive . getFileText ( fileName ) fileText = getWrappedHypertext ( fileText , hypertextFileIndex , hypertextFiles ) if ( fileText . find ( 'This page is in the table of contents.' ) > ( - 1 ) ) : fileText = fileText . replace ( 'This page is in the table of contents.' , '' ) transferredFileNames . append ( fileName ) archive . writeFileText ( filePath , fileText ) os . remove ( fileName )
read the pydoc hypertext help documents .