I have created a python file named breakout.py and want to create an exe with pyinstaller. The python file requires the file ARCADECLASSIC.TTF in the same directory as the python script in order to run. Also I want to be able to run the exe file without having to have the font file aswell. I have tried multiple pyinstaller commands to try to do this.
I tried this command pyinstaller --add-binary "ARCADECLASSIC.TTF;." --onefile breakout.py and recieved a permission denied error number 13.
Then I tryed editing my code so that the font file would be inside a directory called fonts and tried this command pyinstaller --add-binary "fonts/ARCADECLASSIC.TTF;fonts" --onefile breakout.py which ran with no errors but when I ran the exe file an error came saying there is no file named fonts/ARCADECLASSIC.TTF so crashed.
I have now also tried specifying the full directory of the font file and it still doesn't work.
In case this helps my OS is Windows and I am using python 3.8.5 64 bit with pyinstaller 4.0.
Firstly is what I am trying to do possible and secondly if it is possible how do I do it and what am I doing wrong.