using libraries

I have a question about something that isn’t fully clear. Is there any way to have a global library of code that I can use to hold common functions and data?

For instance can I make a python file in the folder of my blend and include it like the bge library? Or is there any way I can reference another script loaded in blender from another script?

In addition to making and loading an external file, if a text file within your blend has a .py extension you can import it like any other module (so personally I make a from which I can use “from General import *”)

Thanks again! I was also trying to figure out ways of organizing everything in my project so double thanks for the link too. By the way I just found your other guides, seems like I have a lot of reading ahead of me haha

Any job involving computers also involves a lot of reading to stay on top of what you are trying to do.