summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorchenyong <[email protected]>2018-08-29 19:41:29 +0800
committerchenyong <[email protected]>2018-08-29 19:41:29 +0800
commitcf96dfcbdb9cd7317b0bf25bab3595368c186275 (patch)
tree065406cd1530d44376f2f5ef617e29782c17e7d3 /tools
parented7f0cad8b288cbb2d78b04886179ad07f2704f9 (diff)
parent361a1b24981b9fb6588c2c1dd786ad8f0e7a5169 (diff)
Merge branch 'master' into chenyong
Diffstat (limited to 'tools')
-rw-r--r--tools/utils.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/utils.py b/tools/utils.py
index fa501096a4..fb151189d8 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -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 != []: