I have a .PYC script I sent to someone, and it's crashing and giving an error that i'm not getting on my end. Is there anyway I can get the window to not close when it crashes so I can read the error message?
Asked
Active
Viewed 383 times
0
-
1Can we assume that the user is running this in a Windows environment, and the user is double-clicking the python script to run it? – Mark Hildreth Feb 19 '14 at 20:48
-
Yes he is running windows and simply double clicking the .pyc file. – Feb 19 '14 at 20:52
1 Answers
0
Run the script from an already-open terminal. To do this, open a terminal/command prompt and type:
python script.pyc
For this to work, you need to have the python executable in your path. Google "How to edit environment variables on [Your OS]" and add C:\PYTHON33
. (Or whatever the directory is that you have installed Python to.)
When the error message appears, the terminal window will stay open for you.

雨が好きな人
- 441
- 3
- 14
-
Just seen the remarkably similar answer to the question linked by Mark Hildreth.. Maybe you should do a little bit more research before posting a question next time? :) – 雨が好きな人 Feb 19 '14 at 21:05
-
Hi, I tried editing the environment variables but python still doesnt work in cmd. – Feb 19 '14 at 21:09
-