summaryrefslogtreecommitdiffstats
path: root/webkit/tools/layout_tests/run_http_server.sh
blob: 4d0baad3013e20e009c97f3d6b6a7a32c3352d87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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
  SCRIPT=$(cygpath -wa "$exec_dir/run_http_server.py")
else
  SCRIPT="$exec_dir/run_http_server.py"
fi

PYTHON_PROG=python
unset PYTHONPATH

"$PYTHON_PROG" "$SCRIPT" "$@"