I'd rather not go back to using os.path if possible. I also don't really see where the KiCad error comes from exactly and why this would fix it ...
The only real difference seems to be that the result is a string, maybe with a different encoding.
Can you try self.icon_file_name = str(Path(__file__).parent / "images" / "blender_icon_32x32.png") or if that one doesn't do the trick: self.icon_file_name = str(Path(__file__).parent / "images" / "blender_icon_32x32.png").encode("ascii", "ignore")?
I'd rather not go back to using
os.path
if possible. I also don't really see where the KiCad error comes from exactly and why this would fix it ... The only real difference seems to be that the result is a string, maybe with a different encoding. Can you tryself.icon_file_name = str(Path(__file__).parent / "images" / "blender_icon_32x32.png")
or if that one doesn't do the trick:self.icon_file_name = str(Path(__file__).parent / "images" / "blender_icon_32x32.png").encode("ascii", "ignore")
?