5

I am using Pyinstaller to create exe file from Python source code, and I keep the cmd window when the exe is running

python pyinstaller.py --onefile script.py

Whenever there is an error, the error shows on the cmd window but disappears very quickly, is there any way to keep the error message on the cmd window?

Ningxi
  • 157
  • 2
  • 9

1 Answers1

13

Create a batch file. Inside of it, put:

C:\path\to\your\file.exe
pause

and double click the batch file. Alternatively, just open a cmd window, navigate to the directory containing the exe and run yourExe.exe.

Darth Vader
  • 383
  • 3
  • 12