graphviz: FileNotFoundError: [WinError 2] 指定されたファイルが見つかりません。

Windows 10にgraphvizをインストールしてPythonから使おうとすると

(略)
FileNotFoundError: [WinError 2] 指定されたファイルが見つかりません。
(略)
ExecutableNotFound: failed to execute ['dot', '-Tsvg'], make sure the Graphviz executables are on your systems' PATH
<graphviz.files.Source at 0x1956e9d07c0>

が出た。

 (base) C:\>dot -V
dot - graphviz version 2.38.0 (20140413.2041)

コマンドラインからdotへのPATHはとおっているので、

qiita.com

のとおりなのだけど、環境変数に追加するパスがbinまでではなく、graphvizまでとおす必要があった

(base) C:>echo %PATH%
(途中略);C:\Users\hoge\miniconda3\Library\bin\graphviz;(この後も略)

追加する環境変数は、ユーザー環境変数でもシステム環境変数のどちらでもよいみたい。