mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-04-30 06:14:37 +00:00
13 lines
277 B
Python
13 lines
277 B
Python
|
#!/usr/bin/env python
|
||
|
import os
|
||
|
|
||
|
def get_sample(filename):
|
||
|
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||
|
fullpath = os.path.join(current_dir, 'samples', filename)
|
||
|
|
||
|
assert os.path.exists(fullpath)
|
||
|
assert os.path.isfile(fullpath)
|
||
|
|
||
|
return fullpath
|
||
|
|