Browse Source

extract_docs: fix reference to undefined typename

Closes #730
Paul m. p. P 6 years ago
parent
commit
ec1c3ef347
1 changed files with 3 additions and 1 deletions
  1. 3 1
      direct/src/directscripts/extract_docs.py

+ 3 - 1
direct/src/directscripts/extract_docs.py

@@ -273,6 +273,7 @@ def processModule(handle, package):
             if "panda3d." + package == module_name:
             if "panda3d." + package == module_name:
                 processType(handle, type)
                 processType(handle, type)
         else:
         else:
+            typename = interrogate_type_name(type)
             print("Type %s has no module name" % typename)
             print("Type %s has no module name" % typename)
 
 
     for i_func in range(interrogate_number_of_global_functions()):
     for i_func in range(interrogate_number_of_global_functions()):
@@ -283,7 +284,8 @@ def processModule(handle, package):
             if "panda3d." + package == module_name:
             if "panda3d." + package == module_name:
                 processFunction(handle, func)
                 processFunction(handle, func)
         else:
         else:
-            print("Type %s has no module name" % typename)
+            funcname = interrogate_function_name(func)
+            print("Function %s has no module name" % funcname)
 
 
     print("}", file=handle)
     print("}", file=handle)