tS folder. The other option is to add 2 lines to the top of your python script:
Code: Select all
import sys
sys.path.append('PythonScripts')
This tells python to look inside the PythonScripts folder for modules to load.
Clinton
Code: Select all
import sys
sys.path.append('PythonScripts')
Yes, feel free to copy anything I put up.Emmanuel wrote:Great ! Thanks for the trick Clinton !!!
I tried to load a python script the other day... and it failed. I was sorry about that and wondered what was wrong for a moment.
Would you allow me to copy the trick on my tS plugins archive page ? I plan to copy some good python scripts there in the future...
Code: Select all
import sys
sys.path.append('PythonScripts')