title: How can I check to see if a Python script was started interactively?
body: <p>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?</p>
  
  <p>EDIT: this could either be a cron job, or started by a windows batch file, through the scheduled tasks.</p>