original_docstring: Creates resource input file (packed_files.txt) for mini_installer project.
  
    This method checks the format of setup.exe being used and according sets
    its resource type.
    
docstring: Creates resource input file (packed_files.txt) for mini_installer project.
  This method checks the format of setup.exe being used and according sets
  its resource type.
docstring_tokens: Creates resource input file ( packed_files . txt ) for mini_installer project . This method checks the format of setup . exe being used and according sets its resource type .
code: def CreateResourceInputFile(output_dir, setup_format, archive_file, setup_file):
    """Creates resource input file (packed_files.txt) for mini_installer project.
  
    This method checks the format of setup.exe being used and according sets
    its resource type.
    """
    setup_resource_type = "BL"
    if (options.setup_exe_format == "FULL"):
      setup_resource_type = "BN"
    elif (options.setup_exe_format == "DIFF"):
      setup_resource_type = "B7"
    setup_file_entry = "%s\t\t%s\n\"%s\"" % (setup_file, setup_resource_type,
        os.path.join(output_dir, setup_file).replace("\\","/"))
  
    archive_file_entry = "\n%s\t\tB7\n\"%s\"\n" % (archive_file,
        os.path.join(output_dir, archive_file).replace("\\","/"))
    output_file = os.path.join(output_dir, MINI_INSTALLER_INPUT_FILE)
    f = open(output_file, 'w')
    try:
      f.write(PACKED_FILE_COMMENTS)
      f.write(setup_file_entry)
      f.write(archive_file_entry)
    finally:
      f.close()
code_tokens: def CreateResourceInputFile ( output_dir , setup_format , archive_file , setup_file ) : setup_resource_type = "BL" if ( options . setup_exe_format == "FULL" ) : setup_resource_type = "BN" elif ( options . setup_exe_format == "DIFF" ) : setup_resource_type = "B7" setup_file_entry = "%s\t\t%s\n\"%s\"" % ( setup_file , setup_resource_type , os . path . join ( output_dir , setup_file ) . replace ( "\\" , "/" ) ) archive_file_entry = "\n%s\t\tB7\n\"%s\"\n" % ( archive_file , os . path . join ( output_dir , archive_file ) . replace ( "\\" , "/" ) ) output_file = os . path . join ( output_dir , MINI_INSTALLER_INPUT_FILE ) f = open ( output_file , 'w' ) try : f . write ( PACKED_FILE_COMMENTS ) f . write ( setup_file_entry ) f . write ( archive_file_entry ) finally : f . close ( )
short_docstring: Creates resource input file (packed_files.txt) for mini_installer project.
short_docstring_tokens: Creates resource input file ( packed_files . txt ) for mini_installer project .
comment: """Creates resource input file (packed_files.txt) for mini_installer project.
  
    This method checks the format of setup.exe being used and according sets
    its resource type.
    """