# Multiple paths to BLENDER_USER_SCRIPTS

I would like to have two folders where i can put scripts and addons that will be loaded at start time with blender.

for example if its possible to add two paths to BLENDER_USER_SCRIPTS environment variable.

To use multiple directories on Windows, i edited the file 2.78\scripts\addon_utils.py and added my path in the function paths() beginning at line 48

def paths():
# RELEASE SCRIPTS: official scripts distributed in Blender releases

# CONTRIB SCRIPTS: good for testing but not official scripts yet
# if folder addons_contrib/ exists, scripts in there will be loaded too

+   # ADDITIONAL SCRIPTS: for development


I also edited the file 2.78\scripts\startup\bl_ui\space_userpref.py and modified the draw method of the USERPREF_PT_addons panel beginning at line 1243, so that the addons from the folder will show up under the User Filter

def draw(self, context):
import os

layout = self.layout

userpref = context.user_preferences
used_ext = {ext.module for ext in userpref.addons}