From c7e16be1f67b533ca23d1ac016c95515277eb059 Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Mon, 16 May 2022 22:00:17 +0200 Subject: [PATCH] Final version of rich_tree --- src/bootstraparse/modules/preparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstraparse/modules/preparser.py b/src/bootstraparse/modules/preparser.py index 4d5d867..bd922f6 100644 --- a/src/bootstraparse/modules/preparser.py +++ b/src/bootstraparse/modules/preparser.py @@ -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