I'm guessing you've used absolute paths to your csv file rather than 
relative paths?

On Sunday, June 30, 2019 at 5:25:50 PM UTC+8, Dallon Durfey wrote:
>
> 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? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/445e7c35-e865-4a3f-90c3-115a6c8b782b%40googlegroups.com.

Reply via email to