The hackiest option possible is to just set a global variable somewhere when you use bootstrap. Otherwise you could use a custom setting.
On Wed, Mar 20, 2019 at 12:15 PM Jonathan Vanasco <jvana...@gmail.com> wrote: > Thanks for the quick reply, Michael. I'll have to ponder a solution to > this problem for a bit. > > > On Wednesday, March 13, 2019 at 3:53:54 PM UTC-4, Michael Merickel wrote: >> >> No bootstrap does not inject any custom settings or anything into the app. >> >> On Wed, Mar 13, 2019 at 2:33 PM Jonathan Vanasco <jona...@findmeon.com> >> wrote: >> >>> there seems to be a few ways a pyramid app can be run >>> >>> is there a way to detect if the current application was started via >>> `pyramid.paster.bootstrap`? >>> >>> i'm trying to sketch out a (public) plugin that can log application >>> startups and invocations. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "pylons-discuss" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to pylons-discus...@googlegroups.com. >>> To post to this group, send email to pylons-...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pylons-discuss/2329b3cc-55d8-4aca-a19d-2f3f4ff0ed5f%40googlegroups.com >>> <https://groups.google.com/d/msgid/pylons-discuss/2329b3cc-55d8-4aca-a19d-2f3f4ff0ed5f%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this group, send email to pylons-discuss@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/17a8d092-f1ac-4bee-84f5-81241187a5a9%40googlegroups.com > <https://groups.google.com/d/msgid/pylons-discuss/17a8d092-f1ac-4bee-84f5-81241187a5a9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAKdhhwF20EtO4zwcgiFUxfi2zQ3tZLCwu58apK44fHsGMuCbnA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.