xflr6 / graphviz

Simple Python interface for Graphviz
https://graphviz.readthedocs.io
MIT License
1.59k stars 209 forks source link

fix(rendering): 'Path' has no attribute 'endswith' #179

Closed agranadosb closed 1 year ago

agranadosb commented 1 year ago

Fix the error when rendering that says 'Path' has no attribute 'endswith'. Making string the object no problem is given.

xflr6 commented 1 year ago

'Path' has no attribute 'endswith'

Can you provide a minimal reproducible example for this error?

Are you maybe using an unsupported version of Python?

See https://docs.python.org/3/library/subprocess.html

Changed in version 3.6: cwd parameter accepts a path-like object on POSIX. Changed in version 3.7: cwd parameter accepts a path-like object on Windows.

xflr6 commented 1 year ago

Closing (cannot reproduce).