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