If the reason you want to know whether you're running under bootstrap
is to determine whether logging has been configured, I ran into that
with uwsgi, that it has an option to load a paste.deploy config file
and initialize logging from it, but it didn't initialize the logging,.
So I added a setting 'logging' with the path to the config file. In my
main function, if it's set, I call logging.config.fileConfig on it.
I don't remember whether I set the value to '%(__file__)s' or
'%(here)/myconfig.ini', because that was another issue I ran into.
paste.deploy sets it, and the pyramid.paster functions may set it, but
ConfigParser doesn't.