No module named '_bpy' when using python multiprocessing?

  • could anyone throw any light on how to avoid ModuleNotFoundError: No module named ‘_bpy’ when using python multiprocessing?

  • I’m calling it from within an addon.

File “c:\blender\2.93\scripts\modules\bpy_init_.py”, line 38, in
from _bpy import (
ModuleNotFoundError: No module named ‘_bpy’

This looks like it’ll fix it:

I wonder if Blender could be doing things better here.

the only problem is , when my addon is initialised, blender has already added it’s paths to the sys.path. What’s the best way to get the sys.paths state before blender has added to it?