way to tell if a script has been executed by Automic

Discussion created by SamahSohrab607228 on Feb 11, 2015
Latest reply on Mar 20, 2015 by Richard_Beck_5694

We've created a python library to allow users to interact with a lot of our cloud environment. We use this same python library has the default method used in our templates. We'd like to be able to tell in our python scripts if a job is initiated from within Automic versus initiated manually by a user on their own system.

Is there an environment variable or something to that affect that indicates if the script has been executed via a Automic Job?
I know I can add a pre-process include file that adds an environment variable, but I was wondering if there was something done by default.