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 84a7969
Show file tree
Hide file tree
Showing 2 changed files with 6 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
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 84a7969

Please sign in to comment.