diff options
author | Doug Hammond <doughammond@hamsterfight.co.uk> | 2010-12-05 19:39:48 +0300 |
---|---|---|
committer | Doug Hammond <doughammond@hamsterfight.co.uk> | 2010-12-05 19:39:48 +0300 |
commit | ba8c185161da6020fb5d9f13abbfb09e2aab43fb (patch) | |
tree | 5cae9586c54d7a361a1f12ccad04e6538e4e63fc /release | |
parent | 49320e697f8031811f2118605a702a4d14aa43bc (diff) |
extensions_framework: prefer user config and scripts dirs, if set, to save addon config files to.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/extensions_framework/util.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/modules/extensions_framework/util.py b/release/scripts/modules/extensions_framework/util.py index 403eeb8a759..dc737c6e4ae 100644 --- a/release/scripts/modules/extensions_framework/util.py +++ b/release/scripts/modules/extensions_framework/util.py @@ -33,7 +33,12 @@ import threading import bpy -config_paths = bpy.utils.script_paths() +"""List of possibly appropriate paths to load/save addon config from/to""" +config_paths = [] +if bpy.utils.user_resource('CONFIG') != "": config_paths.append(bpy.utils.user_resource('CONFIG')) +if bpy.utils.user_resource('SCRIPTS') != "": config_paths.append(bpy.utils.user_resource('SCRIPTS')) +for pth in bpy.utils.script_paths(): + if pth != "": config_paths.append(pth) """This path is set at the start of export, so that calls to path_relative_to_export() can make all exported paths relative to |