Normally python files have to be either:
- In the blend file itself
- In the same folder as the blend file
By using some other python you can manually add another directory
Or by linking to a blend in the scripts directory you can get blender to add it
I discovered a new way recently.
Say I have a script:
/Data/Scripts/test.py
I can run it in module mode by putting in the logic brick:
Data.Scripts.test.function_to_run
It doesn’t require spare blend files, python code to add the directory or anything really. Just enter the path separated by dots (and don’t have spaces in directory names)
This is a clear abuse of pythons package syntax, but hey, it works!