blob: b3f4b4b3d37314f10de999c05e55fa2d24e16de5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
exec_dir=$(dirname $0)
if [ "$OSTYPE" = "cygwin" ]; then
system_root=`cygpath "$SYSTEMROOT"`
PATH="/usr/bin:$system_root/system32:$system_root:$system_root/system32/WBEM"
export PATH
python_prog="$exec_dir/../../../../third_party/python_24/python.exe"
else
python_prog=python
# When not using the included python, we don't get automatic site.py paths.
# Specifically, run_webkit_tests needs the paths in:
# third_party/python_24/Lib/site-packages/google.pth
PYTHONPATH="${exec_dir}/../../../../tools/python:$PYTHONPATH"
export PYTHONPATH
fi
"$python_prog" "$exec_dir/http_server.py" "$@"
|