forked from bartvdbraak/blender
bugfix [#23802] addons panel empty
was using locale.getpreferredencoding() to read the file which depends on the system setup, better use 'UTF-8' always.
This commit is contained in:
parent
e6ce108f5c
commit
fb454bfe08
@ -842,7 +842,7 @@ class USERPREF_PT_addons(bpy.types.Panel):
|
|||||||
ModuleType = type(ast)
|
ModuleType = type(ast)
|
||||||
if speedy:
|
if speedy:
|
||||||
lines = []
|
lines = []
|
||||||
line_iter = iter(open(mod_path, "r"))
|
line_iter = iter(open(mod_path, "r", encoding='UTF-8'))
|
||||||
l = ""
|
l = ""
|
||||||
while not l.startswith("bl_addon_info"):
|
while not l.startswith("bl_addon_info"):
|
||||||
l = line_iter.readline()
|
l = line_iter.readline()
|
||||||
|
Loading…
Reference in New Issue
Block a user