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!
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.
Sign up to join this communityDoes 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!
import bpy
from bpy import context
path = "/somepath"
context.user_preferences.filepaths.script_directory = path