Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-07-29 05:02:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-29 05:02:25 +0400
commit3270438678c8022c00de9655300b9589803a50b1 (patch)
treee6ae4321da08e1257b16c396a0170b18569a1a52 /release/scripts/modules/sys_info.py
parentf5d643e950892760d7c82aaee8a7e31bba8a8359 (diff)
fix for own regression with handling of script paths, however this didnt work quite right before either.
Handle these 2 kinds of script paths * user script path: ~/.blender/scripts OR $BLENDER_USER_SCRIPTS * pref script path: always bpy.context.user_preferences.filepaths.script_directory now both are returned by bpy.utils.script_paths()
Diffstat (limited to 'release/scripts/modules/sys_info.py')
-rw-r--r--release/scripts/modules/sys_info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py
index 6fc50bcfe0d..ea75bfde809 100644
--- a/release/scripts/modules/sys_info.py
+++ b/release/scripts/modules/sys_info.py
@@ -87,7 +87,8 @@ def write_sysinfo(op):
output.write("\nDirectories:\n")
output.write(lilies)
output.write("scripts: %r\n" % (bpy.utils.script_paths()))
- output.write("user scripts: %r\n" % (bpy.utils.user_script_path()))
+ output.write("user scripts: %r\n" % (bpy.utils.script_path_user()))
+ output.write("pref scripts: %r\n" % (bpy.utils.script_path_pref()))
output.write("datafiles: %r\n" % (bpy.utils.user_resource('DATAFILES')))
output.write("config: %r\n" % (bpy.utils.user_resource('CONFIG')))
output.write("scripts : %r\n" % (bpy.utils.user_resource('SCRIPTS')))