| 1 | diff --git a/src/bokeh/util/paths.py b/src/bokeh/util/paths.py
|
| 2 | index c9052e1ce..d60a010a2 100644
|
| 3 | |
| 4 | |
| 5 | @@ -19,6 +19,7 @@ log = logging.getLogger(__name__)
|
| 6 |
|
| 7 | # Standard library imports
|
| 8 | from pathlib import Path
|
| 9 | +import os
|
| 10 |
|
| 11 | # Bokeh imports
|
| 12 | from .deprecation import deprecated
|
| 13 | @@ -66,6 +67,13 @@ def bokehjs_path(dev: bool = False) -> Path:
|
| 14 | This is a low-level API. Prefer using ``settings.bokehjs_path()``
|
| 15 | instead of this function.
|
| 16 | """
|
| 17 | + env_path = os.environ.get("BOKEHJS_PATH")
|
| 18 | + if env_path:
|
| 19 | + js_dir = Path(env_path).resolve()
|
| 20 | + if js_dir.is_dir():
|
| 21 | + return js_dir
|
| 22 | + else:
|
| 23 | + log.warning(f"BOKEHJS_PATH's build directory '{js_dir}' doesn't exist; required. Install it or build the complete bokeh project.")
|
| 24 | if dev:
|
| 25 | js_dir = ROOT_DIR.parent.parent / "bokehjs" / "build"
|
| 26 | if js_dir.is_dir():
|