Files
mattura 13c6343e84 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:04:48 +00:00

23 lines
692 B
Python
Executable File

# Distorm3 hook
#
# This currently contains the hardcoded location for the standard distorm3.dll install
# It could be improved by carrying out a search, or using sys.path
#
# This also requires the distorm3 module to be modified with the following patch:
# import sys
# if hasattr(sys, '_MEIPASS'):
# _distorm_path = sys._MEIPASS
import os
import sys
datas = []
for path in sys.path:
if os.path.exists(os.path.join(path, "distorm3", "distorm3.dll")):
datas.append((os.path.join(path, "distorm3", "distorm3.dll"), "."))
if os.path.exists(os.path.join(path, "distorm3", "libdistorm3.so")):
datas.append((os.path.join(path, "distorm3", "libdistorm3.so"), "."))