Another trick (besides already suggested ones) opens an interactive shell and imports your (possibly modified) python script. When importing, most variables, functions, classes, etc. are available. (Depending on how this is prepared), and you can even create objects interactively from the command line. So, if you have a test.py file, you can open Idle or another shell and type import test (if it is in the current working directory).
heltonbiker May 13 '11 at 14:16 2011-05-13 14:16
source share