Fix include paths for uvision when exported with Python 3.

The call to encode() was causing the include paths to be placed in the
uvision product file with the prefix "b'" and the postfix "'". This
broke the parsing of this file and broke the build.
pull/10045/head
Brian Daniels 2019-03-08 15:37:11 -06:00
parent 83d70199d1
commit 1920212314
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ class Uvision(Exporter):
'project_files': sorted(list(self.format_src(srcs).items()), 'project_files': sorted(list(self.format_src(srcs).items()),
key=lambda tuple: tuple[0].lower()), key=lambda tuple: tuple[0].lower()),
'include_paths': ';'.join(self.filter_dot(d) for d in 'include_paths': ';'.join(self.filter_dot(d) for d in
self.resources.inc_dirs).encode('utf-8'), self.resources.inc_dirs),
'device': DeviceUvision(self.target), 'device': DeviceUvision(self.target),
} }
sct_name, sct_path = self.resources.get_file_refs( sct_name, sct_path = self.resources.get_file_refs(