I am developing a program in Python that reads text files containing SQL queries. To generate the .exe, I am using Pyinstaller with the --onefile option. The problem is that whenever I run this executable, it does not work if it is not in the same folder as the Queries folder. I wish to distribute this .exe by itself without the Queries folder, so I need some way to include this folder within the executable.
I tried editing the .spec file as in the solution in this link, but it seems like I am not really understanding it as I cannot manage it work. Upon further searching, I have not been able to sovle this problem.
Any help will be much appreciated!