CairoSVG
CairoSVG copied to clipboard
`url` keyword parameter does not accept `pathlib.Path` objects
Is this on purpose? Seems a bit weird that it only accepts str and bytes as valid url values
Hi!
It’s not on purpose. That’s just because the API was defined when pathlib didn’t exist yet. 😄
I'd like this too. I was using this in a notebook on databricks and the file system does not work with this. Passing in a bytes object of the image would avoid having to move files around various filesystems to make this work.