blob: 0fc87b93b9ba5f174c1eccd02f405798409dd4f9 [file] [log] [blame]
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
FINDMISSING_DIR="$(cd "$(dirname "$0")" || exit; pwd)"
PYTHON_CMD="./$(basename "$0").py"
cd "${FINDMISSING_DIR}" || exit 1
if [[ ! -e env/bin/activate ]]; then
echo "Environment is not set up to run findmissing client."
echo "Please run './scripts/local/' and repeat this command"
exit 1
source env/bin/activate
# Run script with parameters in virtual env
exec "${PYTHON_CMD}" "$@"