Page MenuHome

Reference code in Python API documentation (clickable link to see functions)
Closed, ArchivedPublic

Description

Searching "reference code" with the documentation label didn't show up my suggestion. Sorry if it's a duplication.

Situation:
I want to see what bpy.ops.script.reload() does internally, so that I can see if it's possible to make changes to allow single add-on reloading.
In the documentation the function is referenced here: https://docs.blender.org/api/current/bpy.ops.script.html

Problems:

  • There is no reference link from the API documentation to the actual code.
  • Searching importlib doesn't find me anything on https://developer.blender.org/diffusion/B/browse/master/
  • Googling (Startpage) site:https://developer.blender.org/ importlib doesn't show up anything either.

Possible solutions:

  • Make the functions clickable, which then send you to the actual code of the API.
  • Index Blender websites on search engines, so that the most common way of how people search can be used (Code & Documentation)
  • Tell me how I can quickly find the code I want to find in the code repository of Blender :')

Event Timeline

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Unknown Status.Jul 25 2019, 4:35 PM
Brecht Van Lommel (brecht) claimed this task.

These are operators implemented in the Blender C code. While it would be convenient to have a system that automatically links to the C code, that's really outside the scope of the bug tracker.

For this specific operator, you can search for SCRIPT_OT_reload in the Blender source code.