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:
-rw-r--r--release/scripts/modules/extensions_framework/util.py7
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