Joseph Cotter (joseph-cotter)

2 answers · asked · Lesson: Intro to Dictionaries & Functions · Course: Introduction to Python Scripting

I have my scripts folder set up in user preferences and in my path, the script is saved to that folder, but when I call it...

I have my scripts folder set up in user preferences and in my path, the script is saved to that folder, but when I call it, I'm getting "no module named..." I've checked the path on the command line and it is correct, as is the scripts input on the files tab of user preferences. I've restarted the computer since setting all up, verified settings and still getting error. Any ideas what else might be causing it?
  • Luckily there's a Blender Discus coders forum... had done a bit of research and still was stuck... after a bit of back and forth in the forum the answer was... >>>import sys >>> >>>sys.path.append(r'drive:\path') and my scripts were now visible. Adding the path to the user preferences didn't do it (I don't know why still) and adding it to the OS path variable didn't either. I'm now looking for how to persist the setting as it gets wiped out upon reboot/separate instance.
  • Note I am using a custom script folder instead of the default one that is buried 5 folder deep in a hidden user data folder