memory, jp: added jp commands to load/save parameters template
This commit is contained in:
parent
675921a7d7
commit
2e6420fb49
1 changed files with 115 additions and 6 deletions
|
|
@ -90,7 +90,7 @@ class Params(object):
|
|||
self._mergeParams(source_map[node_key], dest_map[node_key])
|
||||
|
||||
def load_xml(self, xml_file):
|
||||
"""Load parameters template from file"""
|
||||
"""Load parameters template from xml file"""
|
||||
self.dom = minidom.parse(xml_file)
|
||||
default_dom = minidom.parseString(Params.default_xml.encode('utf-8'))
|
||||
self._mergeParams(default_dom.documentElement, self.dom.documentElement)
|
||||
|
|
|
|||
Loading…
Reference in a new issue