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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user