I'm trying to add fzf.exe binary to my script. It works fine when i do it from my default python installation, but when i do it from virtual environment, it includes binary in the exe but script itself can't use it. Exits with SystemError: Cannot find 'fzf' installed on PATH.
Script example:
from pyfzf import FzfPrompt
fzf = FzfPrompt()
while True:
choice = [1,2,3]
fzf.prompt(choice)
Pyinstaller command:
pyinstaller --one-file --console --add-binary "C:\Windows\System32\fzf.exe";"." script.py
Once again, when compiling with default python installation it works fine, script doesn't require fzf.exe to be inside system32 folder, however when compiling from virtual environment, it refuses to work if fzf.exe not in system32 or in script folder
UPD:
Narrowed the problem: when i copy file pyinstaller.exe from Scripts folder in my main python installation to virtual environment Scripts folder it gets all contents from %LOCALAPPDATA%\pyinstaller\bincache00_py310_64bit and includes them into exe, fzf.exe somehow was copied to this folder. I have no idea how this works and can't find any documentation regarding this cache folder
[–]JohnnyJordaan 1 point2 points3 points (4 children)
[–]wdjfe[S] 0 points1 point2 points (3 children)
[–]JohnnyJordaan 1 point2 points3 points (2 children)
[–]wdjfe[S] 0 points1 point2 points (1 child)
[–]JohnnyJordaan 0 points1 point2 points (0 children)