From 9b0379e0162a5c7cdca2c7b9aa2cdad8d0897aea Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 17 Dec 2003 00:21:12 +0000 Subject: [PATCH] only allow __dev__ in __debug__ --- direct/src/showbase/ShowBaseGlobal.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/showbase/ShowBaseGlobal.py b/direct/src/showbase/ShowBaseGlobal.py index 4a4ca05085..b4f0b510b5 100644 --- a/direct/src/showbase/ShowBaseGlobal.py +++ b/direct/src/showbase/ShowBaseGlobal.py @@ -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.")