[wingide-users] querying debug?

Federico Fanton jorilx at gmail.com
Sat Feb 21 02:24:51 MST 2009


On Fri, 20 Feb 2009 17:52:25 -0800
Hamish McKenzie <hamish at valvesoftware.com> wrote:

> is there any way I can determine whether I'm running a script under debug in wing?

I shamelessly did it like this:

if sys.excepthook.__name__ == "excepthook":
   # Running under plain Python
else:
   # Running under Wing

but I was wondering if there's a better way :)





More information about the wingide-users mailing list