mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 04:52:50 +00:00
Fix for xml handling
This commit is contained in:
parent
40f1c24ecd
commit
e8d780bf81
@ -183,9 +183,8 @@ class WindowsBuilder(Builder):
|
||||
self._print_verbose('Creating XML fragments from files and directories')
|
||||
fragments = self._get_fragments_from_files(self.dist_path)
|
||||
self._print_verbose('Inserting XML fragments into base WiX file')
|
||||
wix = tree.getroot()
|
||||
for fragment in fragments:
|
||||
wix.append(fragment)
|
||||
tree.append(fragment)
|
||||
self._print_verbose('Writing new WiX file')
|
||||
with open(os.path.join(self.config_path, 'OpenLP.wxs'), 'wb') as f:
|
||||
f.write(tostring(tree, encoding='utf-8', xml_declaration=True, pretty_print=True))
|
||||
|
Loading…
Reference in New Issue
Block a user