Hi how do I disable the error (failed to execute script) when i run a exe process created with pyintaller ? without fix the script , because the script works well
Asked
Active
Viewed 663 times
1 Answers
4
"failed to execute script" says that your python program terminates with non-zero exit code by exception. Try this:
import sys
def my_except_hook(exctype, value, traceback):
sys.exit(0)
return
sys.excepthook = my_except_hook

Tyris
- 41
- 2