I have a small tkinter gui that generates some reports. I built a quit button into it. The button works perfectly when I launch the script, but I converted it to an exe with cx_
As per the comments the quit function doesn't work outside of the interpreter
quit
def quits(): sys.exit()
That does the trick