From 13c6343e8433f39367049bdcd3a2c5be7f730ed8 Mon Sep 17 00:00:00 2001 From: mattura Date: Tue, 6 Nov 2018 14:04:48 +0000 Subject: [PATCH 1/3] 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" --- pyinstaller/hook-distorm3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyinstaller/hook-distorm3.py b/pyinstaller/hook-distorm3.py index 883f5ac82..65cf61fa5 100755 --- a/pyinstaller/hook-distorm3.py +++ b/pyinstaller/hook-distorm3.py @@ -16,7 +16,7 @@ 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"), "")) + 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"), "")) + datas.append((os.path.join(path, "distorm3", "libdistorm3.so"), ".")) From 4821ab67df55b5df370c90abe0e37ac1c59e00c4 Mon Sep 17 00:00:00 2001 From: mattura Date: Tue, 6 Nov 2018 14:05:26 +0000 Subject: [PATCH 2/3] 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" --- pyinstaller/hook-openpyxl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyinstaller/hook-openpyxl.py b/pyinstaller/hook-openpyxl.py index 8174c176a..9d8b69346 100755 --- a/pyinstaller/hook-openpyxl.py +++ b/pyinstaller/hook-openpyxl.py @@ -16,4 +16,4 @@ for path in sys.path: if os.path.exists(os.path.join(path, "openpyxl", ".constants.json")): - datas.append((os.path.join(path, "openpyxl", ".constants.json"), "")) + datas.append((os.path.join(path, "openpyxl", ".constants.json"), ".")) From 6e3b2e8100a902ede627da210df5f8b3c802f944 Mon Sep 17 00:00:00 2001 From: mattura Date: Tue, 6 Nov 2018 14:06:01 +0000 Subject: [PATCH 3/3] 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" --- pyinstaller/hook-yara.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyinstaller/hook-yara.py b/pyinstaller/hook-yara.py index 7481404d6..405e76230 100644 --- a/pyinstaller/hook-yara.py +++ b/pyinstaller/hook-yara.py @@ -5,6 +5,6 @@ for path in sys.path: if os.path.exists(os.path.join(path, "yara.pyd")): - datas.append((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"), "")) + datas.append((os.path.join(path, "yara.so"), "."))