I am trying to create a plug-in.
In my __Init__.py
I am trying to import code from another file operator_add.py
, which is located in the same folder in the same level:
if "bpy" in locals():
import importlib
importlib.reload(OBJECT_add)
else:
from operator_add import OBJECT_add
However this does not work, when I install the plug-in it gives me an error saying the No module named operator_add
. Did I miss anything?
importlib.reload(operator_add)
? $\endgroup$