Commit e9510414 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Paths ending with ** should have least priority while sorting

parent f89aaecd
...@@ -2024,7 +2024,10 @@ class TemplateTool (BaseTool): ...@@ -2024,7 +2024,10 @@ class TemplateTool (BaseTool):
Custom sort for path_list according to the priorities of paths Custom sort for path_list according to the priorities of paths
""" """
def comparePath(path): def comparePath(path):
if len(path.split('/')) == 1: path = path.split(' | ')[0]
if path.split('/')[-1] == '**':
return 20
elif len(path.split('/')) == 1:
return 10 return 10
elif len(path.split('/')) > 2: elif len(path.split('/')) > 2:
return 9 return 9
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment