(self, project_path, version, name, guid=None, platforms=None)
Initializes the project.

    Args:
      project_path: Path to the project file.
      version: Format version to emit.
      name: Name of the project.
      guid: GUID to use for project, if not None.
      platforms: Array of string, the supported platforms.  If null, ['Win32']
Initializes the project.
Initializes the project .
def __init__(self, project_path, version, name, guid=None, platforms=None):
    """Initializes the project.

    Args:
      project_path: Path to the project file.
      version: Format version to emit.
      name: Name of the project.
      guid: GUID to use for project, if not None.
      platforms: Array of string, the supported platforms.  If null, ['Win32']
    """
    self.project_path = project_path
    self.version = version
    self.name = name
    self.guid = guid

    # Default to Win32 for platforms.
    if not platforms:
      platforms = ['Win32']

    # Initialize the specifications of the various sections.
    self.platform_section = ['Platforms']
    for platform in platforms:
      self.platform_section.append(['Platform', {'Name': platform}])
    self.tool_files_section = ['ToolFiles']
    self.configurations_section = ['Configurations']
    self.files_section = ['Files']

    # Keep a dict keyed on filename to speed up access.
    self.files_dict = dict()
def __init__ ( self , project_path , version , name , guid = None , platforms = None ) : self . project_path = project_path self . version = version self . name = name self . guid = guid # Default to Win32 for platforms. if not platforms : platforms = [ 'Win32' ] # Initialize the specifications of the various sections. self . platform_section = [ 'Platforms' ] for platform in platforms : self . platform_section . append ( [ 'Platform' , { 'Name' : platform } ] ) self . tool_files_section = [ 'ToolFiles' ] self . configurations_section = [ 'Configurations' ] self . files_section = [ 'Files' ] # Keep a dict keyed on filename to speed up access. self . files_dict = dict ( )