File: utils.py.in

package info (click to toggle)
lief 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 16,036 kB
  • sloc: cpp: 76,013; python: 6,167; ansic: 3,355; pascal: 404; sh: 98; makefile: 32
file content (11 lines) | stat: -rw-r--r-- 220 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/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