'Initializes the solution.
Args:
path: Path to solution file.
version: Format version to emit.
entries: List of entries in solution.  May contain Folder or Project
objects.  May be None, if the folder is empty.
variants: List of build variant strings.  If none, a default list will
be used.
websiteProperties: Flag to decide if the website properties section
is generated.'

def __init__(self, path, version, entries=None, variants=None, websiteProperties=True):

    self.path = path
    self.websiteProperties = websiteProperties
    self.version = version
    self.entries = list((entries or []))
    if variants:
        self.variants = variants[:]
    else:
        self.variants = ['Debug|Win32', 'Release|Win32']
    self.Write()
