mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
try/except existence of __dev__ in report
This commit is contained in:
parent
cecfabbcd9
commit
41d23c0e92
@ -2405,6 +2405,11 @@ class ClassTree:
|
||||
|
||||
|
||||
def report(types = [],notifyFunc = None):
|
||||
try:
|
||||
__dev__
|
||||
except NameError:
|
||||
__dev__ = False
|
||||
|
||||
if __dev__:
|
||||
def decorator(f):
|
||||
def wrap(*args,**kwargs):
|
||||
|
Loading…
x
Reference in New Issue
Block a user