only allow __dev__ in __debug__

This commit is contained in:
Darren Ranalli 2003-12-17 00:21:12 +00:00
parent dbbc69e9a5
commit 9b0379e016

View File

@ -14,3 +14,7 @@ def inspect(anObject):
__builtins__["inspect"] = inspect
__builtins__["__dev__"] = base.config.GetBool('want-dev', 0)
# this also appears in AIBaseGlobal
if (not __debug__) and __dev__:
notify = directNotify.newCategory('ShowBaseGlobal')
notify.error("You must set 'want-dev' to false in non-debug mode.")