log __dev__ setting
This commit is contained in:
parent
28ea992c31
commit
db6bc7d871
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue