def find_spec(self, fullname, path, target=None):
if fullname.startswith("svrx.nodes.script."):
name = fullname.split(".")[-1]
text_name = text_remap(name, reverse=True)
if text_name in bpy.data.texts:
return importlib.util.spec_from_loader(fullname, SvRxLoader(text_name))
else:
print("couldn't find file")
elif fullname == "svrx.nodes.script":
# load Module, right now uses real but empty module, will perhaps change
pass
return None
评论列表
文章目录