Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
the-soloist committed Feb 29, 2024
1 parent 74ffd24 commit 70217a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/context/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ def local_libcdb(self, path):
Examples:
>>> context.local_libcdb = '/home/runner/work/pwntools/pwntools/pwnlib/data/elf/libcdb'
>>> context.local_libcdb = pwnlib.data.elf.libcdb.path
>>> context.local_libcdb = 'foobar'
Traceback (most recent call last):
...
Expand Down
1 change: 1 addition & 0 deletions pwnlib/data/elf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import absolute_import
from pwnlib.data.elf import fmtstr
from pwnlib.data.elf import libcdb
from pwnlib.data.elf import relro
from pwnlib.data.elf import ret2dlresolve

Expand Down
5 changes: 5 additions & 0 deletions pwnlib/data/elf/libcdb/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import os
path = os.path.dirname(__file__)

def get(x):
return os.path.join(path, x)

0 comments on commit 70217a8

Please sign in to comment.