My .exe file cannot find its data files
My .exe file cannot find its data files I used cx_freeze to create an .exe from my .py file. When I build the .exe file, my 2 data files are successfully included in the build folder, but when I run the .exe, the program cannot find the files. My setup(): from cx_Freeze import setup, Executable setup(name='pipermain', options={ 'build_exe':{'packages':[ 'tkinter','PIL' ],'include_files': ['Transactions.csv', 'piper_copy.png' ]}}, description='', executables= [Executable('pipermain.py')] ) I believe this to be a problem with the filepath in my .py code-- How to I write the correct filepath for my .exe to find the data files, no matter what computer the .exe is run on? my file path was: filepath = 'Transactions.csv' because the data file was in my .py project folder. This worked successfully when I ran the .py from PyCharm. But it couldn't locate the file in the build folder whe...