I'm wondering why I get an error while trying to open a file in a tkinter button function.
def manage():
output_file = os.open("Prices.txt", "w")
output_file.write(",".join(HEADERS)+"\n")
output_file.close()
Here is the simplified function, I get an error on the second line.
The thing is it works just fine when I run it as is.
However I had to convert it in a .exe
to be able to run on computers without python, I've done it with pyinstaller
and that maybe is the cause of the problem (not 100% sure tho).