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>2019-08-15 08:53:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-08-15 09:09:15 +0300
commitbb2394a29889157a330bd1064d248c04055b117c (patch)
treea0ae32c821655a54724be59434ae65818645367e /release/scripts/modules/addon_utils.py
parent7c258a8ad1b04a91d24b015fed6c5eae020bf8cc (diff)
Fix T68014: Add-on's override Python built-in modules
Append addon paths to the sys.path to avoid name collisions with system modules.
Diffstat (limited to 'release/scripts/modules/addon_utils.py')
-rw-r--r--release/scripts/modules/addon_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py
index 70768a102b3..376193f73a5 100644
--- a/release/scripts/modules/addon_utils.py
+++ b/release/scripts/modules/addon_utils.py
@@ -42,7 +42,7 @@ addons_fake_modules = {}
def _initialize():
path_list = paths()
for path in path_list:
- _bpy.utils._sys_path_ensure(path)
+ _bpy.utils._sys_path_ensure_append(path)
for addon in _preferences.addons:
enable(addon.module)