[wingide-users] testing whether code is running in Wing
Mitchell L Model
dev at software-concepts.org
Thu Aug 1 20:47:10 EDT 2013
Does this work for simply executing the file in Wing?
On Aug 1, 2013, at 7:47 PM, Wing IDE Support <support at wingware.com> wrote:
> 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: ...
More information about the wingide-users