[Bf-blender-cvs] [15143a7464] master: Cleanup: simplify script path assignment

Campbell Barton noreply at git.blender.org
Sun Mar 26 01:31:45 CET 2017


Commit: 15143a74640995f979dc5a5ff18a17d546e4b954
Author: Campbell Barton
Date:   Sun Mar 26 11:19:31 2017 +1100
Branches: master
https://developer.blender.org/rB15143a74640995f979dc5a5ff18a17d546e4b954

Cleanup: simplify script path assignment

===================================================================

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 14510c844a..081068c227 100644
--- a/release/scripts/modules/bpy/utils/__init__.py
+++ b/release/scripts/modules/bpy/utils/__init__.py
@@ -289,11 +289,9 @@ def load_scripts(reload_scripts=False, refresh_scripts=False):
 
 
 # base scripts
-_scripts = _os.path.join(_os.path.dirname(__file__),
-                         _os.path.pardir,
-                         _os.path.pardir,
-                         )
-_scripts = (_os.path.normpath(_scripts), )
+_scripts = (
+    _os.path.dirname(_os.path.dirname(_os.path.dirname(__file__))),
+)
 
 
 def script_path_user():




More information about the Bf-blender-cvs mailing list