Congbin Guo | e84118c | 2018-03-30 18:38:58 -0700 | [diff] [blame] | 1 | #!/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 Guo | 30c6bbd | 2018-05-08 14:15:11 -0700 | [diff] [blame] | 6 | # Run a archive server of Google Storage inside virtualenv |
Congbin Guo | e84118c | 2018-03-30 18:38:58 -0700 | [diff] [blame] | 7 | set -eu |
| 8 | |
Congbin Guo | 30c6bbd | 2018-05-08 14:15:11 -0700 | [diff] [blame] | 9 | original=$(pwd) |
| 10 | cd -- "$(dirname -- "$(readlink -e -- "$0")")" |
| 11 | . ./find_virtualenv.sh |
| 12 | cd -- "$original" |
| 13 | |
| 14 | exec_python_module gs_archive_server.gs_archive_server "$@" |