I have successfully edited my spec file and added the folder with my data to it. It builds fine but it still can\'t access the data. WHen i try to run the compiled .exe i ge
You put that code snippet right at the top of the Python script you are turning into an executable - not in the spec and not in its own script. I found an example here: