I have a script that I would like to see behave differently when invoked
through the generic shell as
python the_script.py
versus via the %run magic command. Is there a variable or
something
that could be tested to know which invocation was used?
Thank you,
Glen Mabey