mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-10 15:50:57 +00:00
fix: add some hard-coded dot path for MacOS
https://github.com/plantuml/plantuml/issues/1583
This commit is contained in:
parent
4adacbabe5
commit
1e6ffb0bec
@ -48,10 +48,10 @@ class GraphvizLinux extends AbstractGraphviz {
|
||||
|
||||
@Override
|
||||
protected File specificDotExe() {
|
||||
final File all[] = new File[] { new File("/usr/local/bin/dot"), new File("/usr/bin/dot"),
|
||||
new File("/opt/homebrew/bin/dot") };
|
||||
final File all[] = new File[] { new File("/usr/local/bin/dot"), new File("/opt/homebrew/bin/dot"),
|
||||
new File("/opt/homebrew/opt/graphviz/bin/dot"), new File("/usr/bin/dot") };
|
||||
for (File f : all)
|
||||
if (f.exists())
|
||||
if (f.exists() && f.canRead() && f.canExecute())
|
||||
return f;
|
||||
return new File("/opt/local/bin/dot");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user