From 55c398def1e988286d50acaf27b1e96ad9490215 Mon Sep 17 00:00:00 2001 From: Capocchi L Date: Wed, 26 Feb 2020 15:42:03 +0100 Subject: [PATCH] bug fix for mac --- Components.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Components.py b/Components.py index 35b1d4a2..0fc0d931 100644 --- a/Components.py +++ b/Components.py @@ -769,7 +769,9 @@ def GetBlock(filename, label): ext = os.path.splitext(filename)[-1] - print(re.findall(u'[^\u4E00-\u9FA5]', filename)) + if wx.Platform == '__WXMAC__': + ### exclude all chinese character (just for mac) + filename = ''.join(re.findall(u'[^\u4E00-\u9FA5]', filename)) ### catch candidtate class from extention if ext == '.amd':