From 19202123144e856a89a64f8ad8c632fbdd77de99 Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Fri, 8 Mar 2019 15:37:11 -0600 Subject: [PATCH] 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. --- tools/export/uvision/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/export/uvision/__init__.py b/tools/export/uvision/__init__.py index 2cc50dcae7..4ffc1bf881 100644 --- a/tools/export/uvision/__init__.py +++ b/tools/export/uvision/__init__.py @@ -237,7 +237,7 @@ class Uvision(Exporter): 'project_files': sorted(list(self.format_src(srcs).items()), key=lambda tuple: tuple[0].lower()), '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), } sct_name, sct_path = self.resources.get_file_refs(