You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider moving any non-basic imports into the functions.
This is not inefficient because imports are cached, and more importantly, helps reduce import failures.
If an import is pretty much necessary for all functions in the module (like import bpy to blender.object), wrap the import inside try, so it won't fail at init time (deferring failure till the use time).
The text was updated successfully, but these errors were encountered:
xiumingzhang
changed the title
Imports are not "passive" enough
Imports are not lazy enough
Jun 14, 2019
I reiterate:
If an import is pretty much necessary for all functions in the module (like import bpy to blender.object), wrap the import inside try, so it won't fail at init time (deferring failure till the use time).
Consider moving any non-basic imports into the functions.
This is not inefficient because imports are cached, and more importantly, helps reduce import failures.
If an import is pretty much necessary for all functions in the module (like
import bpy
toblender.object
), wrap the import inside try, so it won't fail at init time (deferring failure till the use time).The text was updated successfully, but these errors were encountered: