Fix T68014: Add-on's override Python built-in modules

Append addon paths to the sys.path to avoid name
collisions with system modules.
This commit is contained in:
2019-08-15 15:53:11 +10:00
parent 7c258a8ad1
commit bb2394a298
2 changed files with 13 additions and 7 deletions

View File

@@ -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)