Skip to content

Commit 7b29969

Browse files
committed
Improve "list" command for exec()
1 parent c8dbcd2 commit 7b29969

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

trepan/processor/command/list.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ def run(self, args):
9595
if filename is None:
9696
return
9797
resolved_name = pyficache.resolve_name_to_path(filename)
98+
if "<string>" == resolved_name:
99+
if remapped_file := pyficache.main.code2tempfile.get(curframe.f_code):
100+
filename = resolved_name = remapped_file
101+
98102
if not osp.exists(resolved_name):
99103
# See of resuled_filename is a module name:
100104
# START HERE with try: eval, except

0 commit comments

Comments
 (0)