Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ where X.Y.Z is the semver of the most recent choreographer release.
### Fixed
- Improve platform architecture detection for arm on Linux and Windows [[#290](https://github.com/plotly/choreographer/pull/290)], with thanks to @juliabeliaeva for the contribution!
- Fix license file and add a valid SPDX identifier to project settings [[#294](https://github.com/plotly/choreographer/pull/294)], with thanks to @ecederstrand for the contribution!
- Fix out-of-date docstring on `get_browser_path` [[#300](https://github.com/plotly/choreographer/issues/300)]


## [1.3.0] -- 2026-04-28
Expand Down
13 changes: 10 additions & 3 deletions src/choreographer/utils/_which.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,20 @@ def get_browser_path(*args: Any, **kwargs: Any) -> str | None: # noqa: D417, do
"""
Call `browser_which()` but check for user override first.

It looks for the browser in path.
Returns the path set by the ``BROWSER_PATH`` environment variable if set,
otherwise searches ``PATH`` via `browser_which()`.

Accepts the same arguments as `browser_which':
Accepts the same arguments as `browser_which()`:

Args:
executable_names: the list of names to look for
skip_local: (default False) don't look for a choreo download of anything.
ms_prog_id: A windows registry ID string to lookup program paths

Note:
This function does not handle the choreographer-managed local browser
download. To include (or skip) a locally downloaded browser in the
search, use `choreographer.browsers.chromium.Chromium.find_browser`,
which accepts a ``skip_local`` argument.

"""
return os.environ.get("BROWSER_PATH", browser_which(*args, **kwargs))
Loading