log __dev__ setting

This commit is contained in:
Darren Ranalli 2004-08-10 22:31:46 +00:00
parent 28ea992c31
commit db6bc7d871
2 changed files with 3 additions and 1 deletions

View File

@ -259,10 +259,13 @@ class ShowBase(DirectObject.DirectObject):
__builtins__["directNotify"] = directNotify
__builtins__["globalClock"] = ClockObject.getGlobalClock()
__builtins__["vfs"] = vfs
__builtins__["__dev__"] = base.config.GetBool('want-dev', 0)
if __debug__:
__builtins__["deltaProfiler"] = DeltaProfiler.DeltaProfiler("ShowBase")
__builtins__["onScreenDebug"] = OnScreenDebug.OnScreenDebug()
ShowBase.notify.info('__dev__ == %s' % __dev__)
# Now hang a hook on the window-event from Panda. This allows
# us to detect when the user resizes, minimizes, or closes the
# main window.

View File

@ -18,7 +18,6 @@ def inspect(anObject):
return Inspector.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')