Browse Source

log __dev__ setting

Darren Ranalli 21 years ago
parent
commit
db6bc7d871
2 changed files with 3 additions and 1 deletions
  1. 3 0
      direct/src/showbase/ShowBase.py
  2. 0 1
      direct/src/showbase/ShowBaseGlobal.py

+ 3 - 0
direct/src/showbase/ShowBase.py

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

+ 0 - 1
direct/src/showbase/ShowBaseGlobal.py

@@ -18,7 +18,6 @@ def inspect(anObject):
     return Inspector.inspect(anObject)
     return Inspector.inspect(anObject)
 
 
 __builtins__["inspect"] = inspect
 __builtins__["inspect"] = inspect
-__builtins__["__dev__"] = base.config.GetBool('want-dev', 0)
 # this also appears in AIBaseGlobal
 # this also appears in AIBaseGlobal
 if (not __debug__) and __dev__:
 if (not __debug__) and __dev__:
     notify = directNotify.newCategory('ShowBaseGlobal')
     notify = directNotify.newCategory('ShowBaseGlobal')