blob: 0d10340db8493964c699fec5528fabefa7fa3d1a [file] [log] [blame]
#!/usr/bin/env python3
# Copyright 2018 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Common nassh util code."""
from pathlib import Path
import sys
BIN_DIR = Path(__file__).resolve().parent
DIR = BIN_DIR.parent
sys.path.insert(0, str(LIBAPPS_DIR / "libdot" / "bin"))
# pylint: disable=unused-import
import libdot # pylint: disable=wrong-import-position
# Wrappers around nassh/bin/ programs for other tools to access directly.
class HelperProgram(libdot.HelperProgram):
"""Avoid copying & pasting BIN_DIR setting."""
generate_changelog = HelperProgram("generate-changelog")
fonts = HelperProgram("fonts")
mkdeps = HelperProgram("mkdeps")
plugin = HelperProgram("plugin")