Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Does anyone know how to change the script directory in the user preferences using Python from command line?
I believe it has something to do with bpy.types.UserPreferencesFilePaths, but I'm not sure how to use it.
Please help, thanks!
from bpy import context
path = "/somepath"
context.user_preferences.filepaths.script_directory = path