mirror of
https://github.com/volatilityfoundation/volatility
synced 2026-06-08 18:04:46 +00:00
6e3b2e8100
Current version of pyinstaller cannot accept an empty DESTINATION, assuming current directory. https://github.com/pyinstaller/pyinstaller/issues/3066. This affects "hook-yara.py", "hook-distorm3.py" and "hook-openpyxl.py"
11 lines
284 B
Python
11 lines
284 B
Python
import os
|
|
import sys
|
|
|
|
datas = []
|
|
|
|
for path in sys.path:
|
|
if os.path.exists(os.path.join(path, "yara.pyd")):
|
|
datas.append((os.path.join(path, "yara.pyd"), "."))
|
|
if os.path.exists(os.path.join(path, "yara.so")):
|
|
datas.append((os.path.join(path, "yara.so"), "."))
|