blob: 2cc73a1243aeee8916d9e28f301c9746af6f8eb1 [file] [log] [blame]
Congbin Guoe84118c2018-03-30 18:38:58 -07001#!/bin/bash
2# Copyright 2018 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
Congbin Guoce3778a2018-05-11 14:56:37 -07006# Run Google Storage archive server from inside virtual environment.
Congbin Guoe84118c2018-03-30 18:38:58 -07007set -eu
Congbin Guoce3778a2018-05-11 14:56:37 -07008readonly bindir=$(dirname -- "$(readlink -e -- "$0")")
Sanika Kulkarni154e9af2020-06-29 17:05:50 -07009readonly homedir=$(cd "${bindir}"/../gs_cache; pwd)
10readonly nebraska_dir=$(cd "${bindir}"/../nebraska; pwd)
11export PYTHONPATH=${homedir}:${nebraska_dir}
Congbin Guoe84118c2018-03-30 18:38:58 -070012
Sanika Kulkarni154e9af2020-06-29 17:05:50 -070013exec vpython -vpython-spec "${homedir}"/.vpython -m gs_archive_server "$@"