在交互式控制台模式下以编程方式确定 Zope 是否为 运行

Determining programmatically whether Zope is running in interactive console mode

我知道我可以使用以下代码以编程方式确定 Zope 是否处于 运行ning 调试模式 (bin/instance fg):

>>> import Globals
>>> Globals.DevelopmentMode
True

是否可以确定我是否以交互式控制台模式启动了守护进程(bin/instance debug)?

您可能认为这没有意义,但是当我以这种方式 运行 一个实例时,我遇到了一个包问题:

https://github.com/collective/collective.fingerpointing/issues/30

我最终捕获了生成的异常:

https://github.com/collective/collective.fingerpointing/pull/34