From 12e55966275e3c15ab7de86c814b4f22790fe2df Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Wed, 27 Mar 2019 08:56:46 -0500 Subject: [PATCH] Allow both path seperator types in flash algo names --- 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 fd4158558b..0011c7dcfe 100644 --- a/tools/export/uvision/__init__.py +++ b/tools/export/uvision/__init__.py @@ -93,7 +93,7 @@ class DeviceUvision(DeviceCMSIS): if not info["default"]: continue name = info['file_name'] - name_reg = "\w*/([\w_]+)\.flm" + name_reg = "\w*[/\\\\]([\w_]+)\.flm" m = re.search(name_reg, name.lower()) fl_name = m.group(1) if m else None name_flag = "-FF" + str(fl_count) + fl_name