| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 exec_dir=$(dirname $0) | 7 exec_dir=$(dirname $0) |
| 8 | 8 |
| 9 if [ "$OSTYPE" = "cygwin" ]; then | 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 unset PYTHONPATH | |
| 14 PYTHON_PROG="$exec_dir/../../../third_party/python_24/python.exe" | |
| 15 SCRIPT=$(cygpath -wa "$exec_dir/run_http_server.py") | 10 SCRIPT=$(cygpath -wa "$exec_dir/run_http_server.py") |
| 16 else | 11 else |
| 17 PYTHON_PROG=python | |
| 18 unset PYTHONPATH | |
| 19 SCRIPT="$exec_dir/run_http_server.py" | 12 SCRIPT="$exec_dir/run_http_server.py" |
| 20 fi | 13 fi |
| 21 | 14 |
| 15 PYTHON_PROG=python |
| 16 unset PYTHONPATH |
| 17 |
| 22 "$PYTHON_PROG" "$SCRIPT" "$@" | 18 "$PYTHON_PROG" "$SCRIPT" "$@" |
| OLD | NEW |