I’ve created a Blender exporter that imports other modules in its folder. Blender says nothing was able to be imported.
What’s going on? Is Blender blocking the traditional Python import method? How should I do it then? I just have a py file in the same folder as my main module which I’m trying to import with “import x” or “from x import y”.
If by “its folder” you mean your addon folder, if your addon is in folder xxxxxx and in that folder you have yyyy.py (or folder yyyy with an init.py) and in yyyy you have a class or def zzzz
you can use the following
import xxxxx.yyyy
from xxxxx import yyyy
from xxxxx.yyyyy import zzzz
etc
sounds like it should be
from . import xxxx