Skip to content

Commit 6abcd02

Browse files
authored
Cause kaleido to explicitly fail if no chromium: (#224)
Before we were letting choreographer handle it.
1 parent 2459633 commit 6abcd02

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/py/kaleido/scopes/plotly.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def __init__(self, plotlyjs=None, mathjax=None, topojson=None, mapbox_access_tok
5959
'kaleido_scopes.js'
6060
)
6161
path = os.environ.get("BROWSER_PATH", which_browser())
62+
if not path:
63+
raise RuntimeError("Kaleido now requires that chrome/chromium is installed separately. Kaleido will try to detect it automatically, but the environmental error \"BROWSER_PATH\" can also be set")
6264
if tmp_path:
6365
temp_args = dict(dir=self.tmp_path)
6466
elif "snap" in path:

0 commit comments

Comments
 (0)