me-main #1

Merged
Nate Rupsis merged 123 commits from me-main into main 2023-02-13 18:39:11 +01:00
Showing only changes of commit 9fd71d470e - Show all commits

View File

@ -1002,11 +1002,11 @@ def unregister_tool(tool_cls):
# we start with the built-in default mapping # we start with the built-in default mapping
def _blender_default_map(): def _blender_default_map():
import rna_manual_reference as ref_mod # NOTE(@ideasman42): Avoid importing this as there is no need to keep the lookup table in memory.
ret = (ref_mod.url_manual_prefix, ref_mod.url_manual_mapping) # As this runs when the user accesses the "Online Manual", the overhead loading the file is acceptable.
# avoid storing in memory # In my tests it's under 1/100th of a second loading from a `pyc`.
del _sys.modules["rna_manual_reference"] ref_mod = execfile(_os.path.join(_script_base_dir, "modules", "rna_manual_reference.py"))
return ret return (ref_mod.url_manual_prefix, ref_mod.url_manual_mapping)
# hooks for doc lookups # hooks for doc lookups