I've been using auto py to exe to convert my program into an exe file. however, I can't make it open the txt files that the program uses.
My program looks like this:
With open ("text.txt", "r") as file:
"""does something"""
and every time I run the .exe file I get this error:
No such file or directory: 'text.txt'
I am using the -add-data commando, though. So, for what I can see in the library manual, it should work. I had the same problem with PyInstaller. any help?