I have a python script which I have made dropable using a registry-key, but it does not seem to work. The cmd.exe window just flashes by, can I somehow make the window stay up, or save the output?
EDIT: the problem was that it gave the whole path not only the filename.
If you want a pure-Python solution to this, you’ll have to wrap your script with a try/except clause:
This way the window will stay open, even when your code throws an exception. It will still close when Python cannot parse the script, i.e. when you have a syntax error. If you want to fix that too, I’d suggest a good IDE that allows you to develop in a more pleasant way (PyCharm and PyDev come to mind).