How can I import a Blender Python script inside another? I am working a python file using blender api named - generate.py, which contains some functions. I want to call those functions in another file called test.py.
I opened both the files in the blender text editor and on top of the test.py file, I wrote from generate import *, but when I call a function defined inside generate.py in test.py, I get an error saying module named generate.py does not exist. So what is the right way to define modules in blender. I also have both the files in the same directory