I\'d like for a script of mine to have 2 behaviours, one when started as a scheduled task, and another if started manually. How could I test for interactiveness?
EDI
If you want to know if you're reading from a terminal (not clear if that is enough of a distinction, please clarify) you can use
sys.stdin.isatty()