Py3: [skip ci] make FreeCAD thumbnailer working with Py3 by opening PNG icon in binary mode
This commit is contained in:
@@ -44,7 +44,7 @@ try:
|
||||
image = zfile.read(image)
|
||||
else:
|
||||
# apps should have at least 48x48 icons
|
||||
freecad = open("/usr/share/icons/hicolor/48x48/apps/freecad.png")
|
||||
freecad = open("/usr/share/icons/hicolor/48x48/apps/freecad.png", "rb")
|
||||
image = freecad.read()
|
||||
|
||||
# Write icon to output_file
|
||||
|
||||
Reference in New Issue
Block a user