Warning
This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
Source code for galaxy.tools.expressions.util
from galaxy.util.commands import which
[docs]def find_engine(config):
nodejs_path = getattr(config, "nodejs_path", None)
if nodejs_path is None:
nodejs_path = which("nodejs") or which("node") or None
if nodejs_path is None:
raise Exception("nodejs or node not found on PATH")
return nodejs_path