Final version of rich_tree

This commit is contained in:
Maximilien Rigaut 2022-05-16 22:00:17 +02:00
parent 0d8df69d45
commit c7e16be1f6
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ class PreParser:
self.tree_view = Tree(prefix+stripped_name+suffix)
for p, l in self.parse_import_list():
try:
self.tree_view.add(self.global_dict_of_imports[p].rich_tree(suffix=" (Line:{})".format(l), force=True, strip_prefix=self.base_path))
self.tree_view.add(self.global_dict_of_imports[p].rich_tree(suffix=" (Line:{})".format(l), force=True, strip_prefix=strip_prefix))
except KeyError: # The key isn't in the global dict yet
self.tree_view.add(Tree(prefix+p+suffix+" !!"))
unparsed = True