0

I wrote a .py code and converted it to a .exe using pyinstaller. It report the following problem:

  1. If I double click the .exe the program execute correctly (takes some input file, takes some input user digit, saves some output files etc..). When it ends the window automatically closes and I do not have time to look at the stamps.
  2. If I execute the .exe calling it from command prompt I do not register this problem. At the end of the execution the cmd windows is still open and I can navigate through it.

Should I set an option in Pyinstaller? Any advice?

Thanks.

asked Aug 9, 2023 at 10:17

1 Answer 1

1

Add a input() command to end of your program to get a key before exiting.

answered Aug 9, 2023 at 10:25
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.