diff options
author | mmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-10 21:58:57 +0000 |
---|---|---|
committer | mmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-10 21:58:57 +0000 |
commit | d074bcc717295e16e2fc48edd7ec5a4641f7cc39 (patch) | |
tree | 2e39f05341ddec602dc29bb134ddcb2a34cfad84 /webkit | |
parent | 633299837b77365f07bf15a87925e9eeda1e3987 (diff) | |
download | chromium_src-d074bcc717295e16e2fc48edd7ec5a4641f7cc39.zip chromium_src-d074bcc717295e16e2fc48edd7ec5a4641f7cc39.tar.gz chromium_src-d074bcc717295e16e2fc48edd7ec5a4641f7cc39.tar.bz2 |
Fix error when manually running http_server on Windows.
This bug was shaken out by Mac changes in r3095.
$ third_party/python_24/python webkit/tools/layout_tests/layout_package/http_server.py --server start
<snip>
ImportError: No module named layout_package.path_utils
Review URL: http://codereview.chromium.org/7095
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/tools/layout_tests/layout_package/platform_utils_win.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/webkit/tools/layout_tests/layout_package/platform_utils_win.py b/webkit/tools/layout_tests/layout_package/platform_utils_win.py index bc69f15..55ed733 100644 --- a/webkit/tools/layout_tests/layout_package/platform_utils_win.py +++ b/webkit/tools/layout_tests/layout_package/platform_utils_win.py @@ -12,6 +12,7 @@ to fall back to the base functions. """ import os +import path_utils import re import subprocess @@ -19,8 +20,6 @@ import google.httpd_utils import google.path_utils import google.platform_utils_win -import layout_package.path_utils - # This will be a native path to the directory this file resides in. # It can either be relative or absolute depending how it's executed. THISDIR = os.path.dirname(os.path.abspath(__file__)) @@ -34,7 +33,7 @@ class PlatformUtility(google.platform_utils_win.PlatformUtility): PENDING_HTTP_DIR = "pending/http/tests/" def FilenameToUri(self, full_path): - relative_path = layout_package.path_utils.RelativeTestFilename(full_path) + relative_path = path_utils.RelativeTestFilename(full_path) port = None use_ssl = False @@ -69,7 +68,7 @@ class PlatformUtility(google.platform_utils_win.PlatformUtility): def KillAllTestShells(self): """Kills all instances of the test_shell binary currently running.""" subprocess.Popen(('taskkill.exe', '/f', '/im', - layout_package.path_utils.TestShellBinary()), + path_utils.TestShellBinary()), stdout=subprocess.PIPE, stderr=subprocess.PIPE).wait() @@ -107,7 +106,7 @@ class PlatformUtility(google.platform_utils_win.PlatformUtility): command for Apache 2.x instead of Apache 1.3.x """ layout_dir = google.platform_utils_win.GetCygwinPath( - layout_package.path_utils.LayoutDataDir()) + path_utils.LayoutDataDir()) main_document_root = os.path.join(layout_dir, "LayoutTests", "http", "tests") pending_document_root = os.path.join(layout_dir, "pending", |