Nov-07-2016, 06:53 PM
(Nov-01-2016, 04:17 PM)micseydel Wrote: Try using -i with Python (before your script); this will run your script and then dump you in interactive mode. Note that you won't have access to any function-local variables, you'll need to make sure any state you want access to is available after the script completes.
That's some dark magic, right there. Having never actually read the arguments to python, I would have assumed -i was the default, and that it started interactive mode. Running a script and then giving you an interactive environment at the end of it? Wow, that's like, magic debugging material, or something.