I have scripts loaded in the text editor. They are made internal, they are registered and saved under scripts/startup/myAddOns
. They run OK when I run directly on the text editor. And the output goes to the System Console OK.
What I am asking is somewhat different. When I run my script from the Python Console, I do:
>>> from myAddOns import myModule # myAddOns folder is under scripts/startup
>>>
>>> myModule
>>> <module 'myAddOns.myModule' from 'C:\\Program Files\\Blender Foundation\\Blender 3.3\\3.3\\scripts\\startup\\myAddOns\\myModule.py'>
in myModule there is a print statement:
...
...
print ("myvar", myvar)
...
...
The output of that print does not show up anywhere; neither at the Python console, nor the System Console.
Where does it go??
with open("some_file_path", 'w') as f: f.write("test")
and see if that creates the file? $\endgroup$