mergedocument

guerilla.mergedocument(filename)

Merge a .gproject file into the current project.

This method merges the content of a .gproject file into the current Document. To load other guerilla file types, use the Node method loadfile.

The returned value is a list of the root nodes contained in this file. LUA{ local result = mergedocument (“$(SAMPLES)/Grass.gproject”) for k, node in pairs (result) do

local path = node:getpath () print (“Loaded node ”..path)

end }

param filename:The file name to merge
type filename:str
return:The created nodes or None if failed
rtype:{Node}