diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-07-27 15:22:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-07-27 15:22:26 +0300 |
commit | 4003409430404c1be91d44460a770dfc9ce46135 (patch) | |
tree | 62268d95c22e7ea55bb48746fd8aee93986291d5 /release | |
parent | f1d6bad4b6f9f6ae429687f12ae67a175e9c183a (diff) |
Fix factory setup using user scripts path still
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/bpy/utils/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy/utils/__init__.py b/release/scripts/modules/bpy/utils/__init__.py index 6d3e807c2b4..966a1fe877c 100644 --- a/release/scripts/modules/bpy/utils/__init__.py +++ b/release/scripts/modules/bpy/utils/__init__.py @@ -331,6 +331,10 @@ def script_paths(subdir=None, user_pref=True, check_all=False, use_user=True): # so the 'BLENDER_SYSTEM_SCRIPTS' environment variable will be used. base_paths = _bpy_script_paths() + # Defined to be (system, user) so we can skip the second if needed. + if not use_user: + base_paths = base_paths[:1] + if check_all: # All possible paths, no duplicates, keep order. if use_user: |