Py3: [skip ci] make FreeCAD thumbnailer working with Py3 by opening PNG icon in binary mode

This commit is contained in:
wmayer
2020-12-03 16:50:45 +01:00
parent 0add97a18f
commit 35ad37946f

View File

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