Is it possible from within python code to determine how the code was launched from within UniVerse?
There appear to be 3 main options for initiating the execution of python code
- Launch a python module using the RUNPY command
- Launch the PYTHON command to access the python shell
- Use the BASIC API functions: PyCall, PyCallFunction, PyCallMethod
(Not sure why there i no VOC entry, similar to the “VR” type for basic programs, that launches a python program - opportunity missed, I think).
I want to be able to determine how the python code was launched so am wondering if there is any pythonic approach to establish this