[Bf-blender-cvs] [40034094304] master: Fix factory setup using user scripts path still
Campbell Barton
noreply at git.blender.org
Thu Jul 27 14:09:23 CEST 2017
Commit: 4003409430404c1be91d44460a770dfc9ce46135
Author: Campbell Barton
Date: Thu Jul 27 22:22:26 2017 +1000
Branches: master
https://developer.blender.org/rB4003409430404c1be91d44460a770dfc9ce46135
Fix factory setup using user scripts path still
===================================================================
M release/scripts/modules/bpy/utils/__init__.py
===================================================================
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:
More information about the Bf-blender-cvs
mailing list