I am trying to use a text block from within the same Blender file, following the (rather old) advice here: Python: is it possible to import another text block?
So I have two text blocks. One called Text and one called printy.py which contains the simplest of functions:
In 'Text', all it says is:
I've saved and reopened the file. But I get:
ModuleNotFoundError: No module named 'printy'
This seems laughably simple and I've seen the approach in a several places, e.g. Blender 2.80: Helper Modules but I can't make it work.
What am I missing?