[skip ci] Fix the rsplit issue in Linux

This commit is contained in:
Bernard Xiong 2018-08-29 02:17:32 +01:00
parent dffc1bfd55
commit 240451b978
1 changed files with 7 additions and 4 deletions

View File

@ -114,11 +114,14 @@ def walk_children(child):
# print child
full_path = child.rfile().abspath
file_type = full_path.rsplit('.',1)[1]
file_type_list = full_path.rsplit('.',1)
#print file_type
if file_type in source_ext:
if full_path not in source_list:
source_list.append(full_path)
if (len(file_type_list) > 1):
file_type = full_path.rsplit('.',1)[1]
if file_type in source_ext:
if full_path not in source_list:
source_list.append(full_path)
children = child.all_children()
if children != []: