I have a working Python 3 script, inventoryScraper.py, that I am trying to make into a 1 file executable I can distribute. I have been using Pyinstaller 3 with Python 3, it has worked in the past. I have a file 'Store_Codes.csv' that my script needs to run, and I want it included inside the executable.
I have read and attempted all the previous answers relating to this, and it has not worked/I messed it up. The resulting .exe works when the Store_Codes.csv is in the same folder as the exe, but not otherwise. I am definitely a novice to Python, but the person I'm giving this to has no experience whatsoever with command lines or anything related, so it's important it be an all-in-one file.
I have modified the spec file in every way I have seen on other posts, and none have worked, I am sure I am misunderstanding, and I could really use the help.
What is the straightforward way, with Pyinstaller 3, to include data files in a onefile exe?
Thank you!