mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
by default don't do exception variable dump in __dev__
This commit is contained in:
parent
c8ded35040
commit
35a643c737
@ -70,7 +70,8 @@ class ShowBase(DirectObject.DirectObject):
|
||||
notify = directNotify.newCategory("ShowBase")
|
||||
|
||||
def __init__(self):
|
||||
if config.GetBool('want-variable-dump', 1):
|
||||
__builtin__.__dev__ = config.GetBool('want-dev', 0)
|
||||
if config.GetBool('want-variable-dump', not __dev__):
|
||||
ExceptionVarDump.install()
|
||||
|
||||
# Locate the directory containing the main program
|
||||
@ -325,7 +326,6 @@ class ShowBase(DirectObject.DirectObject):
|
||||
__builtin__.cpMgr = ConfigPageManager.getGlobalPtr()
|
||||
__builtin__.cvMgr = ConfigVariableManager.getGlobalPtr()
|
||||
__builtin__.pandaSystem = PandaSystem.getGlobalPtr()
|
||||
__builtin__.__dev__ = base.config.GetBool('want-dev', 0)
|
||||
__builtin__.wantUberdog = base.config.GetBool('want-uberdog', 1)
|
||||
if __debug__:
|
||||
__builtin__.deltaProfiler = DeltaProfiler.DeltaProfiler("ShowBase")
|
||||
|
Loading…
x
Reference in New Issue
Block a user