modelmat / sphinxcontrib-drawio

Sphinx extension for including draw.io files.
MIT License
39 stars 17 forks source link

Improve drawio binary finding functionality to use $PATH #71

Closed modelmat closed 2 years ago

modelmat commented 2 years ago

Fixes #23, #24 and #66.

Prioritises config-option binary_path, then programs in $PATH, then the hardcoded absolute paths. Also raises an error if cannot find the executable as opposed to just attempting to run draw.io as a Linux program anyway.

modelmat commented 2 years ago

@benjamin-antupit @fcossio Could you test to confirm this works on mac?

benjamin-antupit commented 2 years ago

Looks all set to me (for MacOS at least). Thanks @modelmat!