Browse Source

try/except existence of __dev__ in report

Josh Wilson 19 years ago
parent
commit
41d23c0e92
1 changed files with 5 additions and 0 deletions
  1. 5 0
      direct/src/showbase/PythonUtil.py

+ 5 - 0
direct/src/showbase/PythonUtil.py

@@ -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):