Hi everyone! I’m trying to use Cython to speed up a couple of things in an addon with a node editor I’m developing. I’m having trouble importing my complied module into Blender. I have the .pyd and .c file and I’ve appended the directory folder to sys.path and in Blender (as recommend here) it shows up when I try to import it (like intellisense wise it shows up) in both VSCode and the Blender Python Console but when I actually try to import it ( hit Enter in the Py Console or try and enable my addon with “import module”) it says it can’t find it [ ModuleNotFoundError: No module named ‘smooth’ ].
My directory is as follows:
pyd file: AddonRoot / cymods / compiled_cython.pyd
pyx file: AddonRoot / nodes / pyx.pyx (as well as the compiled_cython.c file)
The address I put into sys.path is:
using python os module so all separators are correct for the OS
And any articles or help with using Cython with Blender in general would be appreciated as well! I’m very new to it.