AnsweredAssumed Answered

Interesting requirement

Question asked by jamesfreddyc Champion on Oct 1, 2013
Latest reply on Oct 1, 2013 by jamesfreddyc
I have an interesting requirement and looking for comments...

In order to reduce duplication of modules/def's in our codebase, I need a way to determine WHERE something is being executed from.  That is, our requirement is users will have the ability to execute a process from an ArcToolbox OR from a command line (both with args/params).

Is there a way to detect/test if it is being executed from Command line or from an ArcToolbox?  The reason is that I will need to set variables in the script with the command line args or toolbox (GetParameter).