Something I'm going to prototype might well run in Pythonista, or Editorial, or Sublime Text.
If Editorial it probably wants the current document. Likewise Sublime Text (but the code would be different). With Pythonista I read the file. And so on.
The point is I'd like to know which environment I'm running in so my code can branch and do the right thing.
I expect 95% of the code to be common across all the environments.
So how do I detect Pythonista vs Editorial etc? (Even just these two would be great.)