forked from blender/blender
me-main #1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user