Commit 37d5aed3 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

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

parent 03dca799
......@@ -2027,7 +2027,10 @@ class TemplateTool (BaseTool):
Custom sort for path_list according to the priorities of paths
"""
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
elif len(path.split('/')) > 2:
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