Error with importing module

I have a custom module that encapsulates some functions. I can import it into the python script normally in vscode. Now I have made the script into a slicer module. When I put the pyd file in the same directory as the script, but import failed.


it means can’t find the file

Python-3.8 toughened security in Windows, so it is not enough to have DLLs in the path. See more information for example here: python module dlls - Stack Overflow