Aetheris743 / Blender-PBR-Texture-Exporter

A Blender PBR Material Texture and Object Exporter
MIT License
24 stars 7 forks source link

Use python os.path functions instead of hard-coding backslashes #7

Closed Jefficus closed 1 year ago

Jefficus commented 2 years ago

The plugin currently crashes on Linux (and presumably Mac) because these systems use / instead of \ in file paths. I tried replacing them all manually and discovered that the plugin now works on my Linux box, but a better solution would be to rebuild those path manipulations using os.path.split() and os.path.join() calls, which will construct machine-specific path strings.