blob: a0b5e5637145d554d1fa7305e77908aae01a24d5 [file] [log] [blame]
#!/bin/bash
# Copyright 2018 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.
# Run Google Storage archive server from inside virtual environment.
set -eu
readonly bindir=$(dirname -- "$(readlink -e -- "$0")")
readonly homedir=$(cd "$bindir"/../gs_cache; pwd)
export PYTHONPATH=$homedir
exec vpython -vpython-spec $homedir/.vpython -m gs_archive_server "$@"