Assume xml is text rather than binary.

This commit is contained in:
Tomas Groth 2019-04-09 21:28:25 +02:00
parent 4b81713954
commit dbd350889b
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class WindowsBuilder(Builder):
self._print('Creating WiX file...')
config_dir = os.path.dirname(self.config_path)
self._print_verbose('Reading base WiX file')
with open(os.path.join(config_dir, 'OpenLP-base.wxs'), 'rb') as base_file:
with open(os.path.join(config_dir, 'OpenLP-base.wxs'), 'rt') as base_file:
xml = base_file.read()
xml = xml.format(dialog=os.path.join(config_dir, 'WizardMain.bmp'),
banner=os.path.join(config_dir, 'WizardBanner.bmp'))