30350n / pcb2blender

KiCad to Blender 3D model workflow
GNU General Public License v3.0
546 stars 12 forks source link

fix #2 #3

Closed chenxuuu closed 2 years ago

30350n commented 2 years ago

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")?

chenxuuu commented 2 years ago

second way is work

30350n commented 2 years ago

Thanks!