Files
mattura 6e3b2e8100 Fix updated pyinstaller "empty DEST" issue
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"
2018-11-06 14:06:01 +00:00

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"), "."))