1. Chris Perl
  2. objexplo

Commits

Chris Perl  committed e0d0ccd

Save file path in top level object

  • Participants
  • Parent commits d4eb0f0
  • Branches default

Comments (0)

Files changed (1)

File elf.py

View file
  • Ignore whitespace
     """
     def __new__(cls, path):
         obj = super(ELF, cls).__new__(cls)
+        obj.path = path
         obj.SYMBOLIC = True
+
         f = open(path, 'r')
         obj.hdr = obj.header = ElfHeader(f, owner=obj)
         obj.sht = obj.section_header_table = SectionHeaderTable(obj.hdr, f)