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':