Hi all,
I'm looking for a best practice way to recognize when Pythonista is calling a script (vs. being called from, say, Alfred, or just in a plain old terminal emulator).
The best I can find is to try to import a Pythonista-only module, and work from there, but it seems pretty hacky. I looked around the documentation and didn't find anything.
Any ideas?