So I'll start off by saying I'm somewhat new to python and using pyinstaller, but I've been reading a lot and cannot find a solution to the problem I'm experiencing
I'm trying to bundle a csv file with some data when using pyinstaller. I've successfully done this by by using the --add-data command, as well as modifying the spec file.
The problem I'm having is that once the bundle is complete, the path I've specified in my python code references the csv file in the original folder, not the one that was bundled with the exe, so when I try to run the exe on another computer, it crashes because that file doesn't exist.
How can I fix this problem? I'm assuming I'll need to change the path to something different in my actual python code, but I'm not sure how to do this or what the path should be. Can someone help me?