From fc3787987365bd902916a697739157220d1d9ab1 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 a9450a7664..2b495bdd1c 100644 --- a/tools/export/uvision/__init__.py +++ b/tools/export/uvision/__init__.py @@ -241,7 +241,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(