3

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

001
  • 13,291
  • 5
  • 35
  • 66
M Smith
  • 73
  • 7

1 Answers1

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