def export_environment(self, env, path):
    '\n        Exports an environment to a local folder. Hosts of the environment\n        are exported also.\n\n        @param env: The environment to export.\n        @type env: L{Environment}\n        @param path: Path to local directory.\n        @type path: string\n        '
    self._export_entity(env, path)
    hosts_folder = os.path.join(path, 'hosts')
    for host in env.hosts():
        self.export_host(host, os.path.join(hosts_folder, host.name))
Exports an environment to a local folder. Hosts of the environment
are exported also.

@param env: The environment to export.
@type env: L{Environment}
@param path: Path to local directory.
@type path: string
def export_environment(self, env, path):
    '\n        Exports an environment to a local folder. Hosts of the environment\n        are exported also.\n\n        @param env: The environment to export.\n        @type env: L{Environment}\n        @param path: Path to local directory.\n        @type path: string\n        '
    self._export_entity(env, path)
    hosts_folder = os.path.join(path, 'hosts')
    for host in env.hosts():
        self.export_host(host, os.path.join(hosts_folder, host.name))