[wingide-users] testing whether code is running in Wing

Wing IDE Support support at wingware.com
Thu Aug 1 19:47:14 EDT 2013


On 8/1/13 7:25 PM, Mitchell L Model wrote:
> I know this has come up before, but I can't remember or find how to do this: I want a statement in a file to be executed only if  I am not running under Wing; how do I test that within the Python file?

Check for WINGDB_ACTIVE in the environment; e.g. if 'WINGDB_ACTIVE' in 
os.environ: ...

Cheers,

John



More information about the wingide-users mailing list