| #!/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 | |
| # | |
| # See the cros_venv Python package for details, or pass the --help | |
| # option. | |
| set -eu | |
| basedir=$(readlink -f "$(dirname "${BASH_SOURCE[0]}" )") | |
| PYTHONPATH="$basedir/venv" /usr/bin/python -m cros_venv "$@" |