LIEF/tests/utils.py.in

12 lines
220 B
Python

#!/usr/bin/env python
import os
def get_sample(filename):
fullpath = os.path.join("@LIEF_SAMPLES_DIRECTORY@", filename)
assert os.path.exists(fullpath)
assert os.path.isfile(fullpath)
return fullpath