Skip to content

Commit 70217a8

Browse files
committed
Fix test case
1 parent 74ffd24 commit 70217a8

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

pwnlib/context/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ def local_libcdb(self, path):
10861086
10871087
Examples:
10881088
1089-
>>> context.local_libcdb = '/home/runner/work/pwntools/pwntools/pwnlib/data/elf/libcdb'
1089+
>>> context.local_libcdb = pwnlib.data.elf.libcdb.path
10901090
>>> context.local_libcdb = 'foobar'
10911091
Traceback (most recent call last):
10921092
...

pwnlib/data/elf/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import absolute_import
22
from pwnlib.data.elf import fmtstr
3+
from pwnlib.data.elf import libcdb
34
from pwnlib.data.elf import relro
45
from pwnlib.data.elf import ret2dlresolve
56

pwnlib/data/elf/libcdb/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import os
2+
path = os.path.dirname(__file__)
3+
4+
def get(x):
5+
return os.path.join(path, x)

0 commit comments

Comments
 (0)