parameters: (package, package_type, package_id, package_folder, rootpath, destdir)
docstring: Build the text of the file and write the file.
docstring_summary: Build the text of the file and write the file.
docstring_tokens: Build the text of the file and write the file .
function: def create_package_file(package, package_type, package_id, package_folder, rootpath, destdir):
      """Build the text of the file and write the file."""
      text = format_heading(1, '%s' % (package))
      text += format_directive(package_type, package)
  
      xmlfile = os.path.join(rootpath, package_id + '.xml')
      f = xml.etree.ElementTree.parse(os.path.join(xmlfile))
  
      write_file(os.path.join(package_folder, package_id), text, destdir)
function_tokens: def create_package_file ( package , package_type , package_id , package_folder , rootpath , destdir ) : text = format_heading ( 1 , '%s' % ( package ) ) text += format_directive ( package_type , package ) xmlfile = os . path . join ( rootpath , package_id + '.xml' ) f = xml . etree . ElementTree . parse ( os . path . join ( xmlfile ) ) write_file ( os . path . join ( package_folder , package_id ) , text , destdir )