… at the end of the script makes it wait for the Enter key. When the program ends, it’ll drop you back to the cmd prompt instead of closing the window.Īdd code to wait at the end of your script. Just check on how to edit environment variables on Windows, and add C:\PYTHON26 (or whatever directory you installed python to). Open a command prompt and type: python myscript.pyįor that to work you need the python executable in your path. Run the program from an already-open terminal. I need it to stay there so I can analyze my output. When I execute a python script file on Windows, the output window appears but instantaneously goes away. Question or problem about Python programming:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |