0

So I currently have this string: "//..\Desktop\vine.png" However, to use it when loading an image I need the \ to be \\ , so: "//..\\Desktop\\vine.png"

path = "//..\Desktop\vine.png"
image = bpy.data.images.load(path)

I've tried using

bpy.path.abspath(path)

however this is what it throws back at me:

enter image description here

For some reason it changes the "v" to "x0b" and doesn't change the last \ to a \\

Anyone have any ideas why this might be? Or any other methods to change the \ to \\

Nils Söderman
  • 586
  • 2
  • 4
  • 11

0 Answers0