blob: d1460051188662230749b82fda41116ea9a611b3 [file] [log] [blame]
#!/bin/bash
# Copyright 2017 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.
#
# Create or update a virtualenv.
#
# $ create_venv path/to/venv path/to/requirements.txt [path/to/custom.pth]
#
# See the cros_venv Python package for details, or pass the --help
# option.
set -eu
basedir=$(readlink -f "$(dirname "${BASH_SOURCE[0]}" )")
PYTHONPATH="$basedir" /usr/bin/python -m cros_venv "$@"