Is there a clean way to get the absolute path to the
scripts folder for the currently running version of Blender?
The following code works (on Windows) but it feels a bit hackish.
from os.path import dirname, join, normpath from bpy.app import binary_path_python normpath(join(dirname(binary_path_python), '..', '..', 'scripts'))
C:\\Program Files\\Blender Foundation\\Blender\\2.77\\python\\scripts.