diff options
author | Ben Murdoch <benm@google.com> | 2011-05-05 14:36:32 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-05-10 15:38:30 +0100 |
commit | f05b935882198ccf7d81675736e3aeb089c5113a (patch) | |
tree | 4ea0ca838d9ef1b15cf17ddb3928efb427c7e5a1 /WebKitTools/QueueStatusServer/__init__.py | |
parent | 60fbdcc62bced8db2cb1fd233cc4d1e4ea17db1b (diff) | |
download | external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.zip external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.gz external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.bz2 |
Merge WebKit at r74534: Initial merge by git.
Change-Id: I6ccd1154fa1b19c2ec2a66878eb675738735f1eb
Diffstat (limited to 'WebKitTools/QueueStatusServer/__init__.py')
-rw-r--r-- | WebKitTools/QueueStatusServer/__init__.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/WebKitTools/QueueStatusServer/__init__.py b/WebKitTools/QueueStatusServer/__init__.py deleted file mode 100644 index 2346c23..0000000 --- a/WebKitTools/QueueStatusServer/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# Required for Python to search this directory for module files - -# This __init__.py makes unit testing easier by allowing us to treat the entire server as one big module. -# This file is only accessed when not on AppEngine itself. - -# Make sure that this module will load in that case by including paths to -# the default Google AppEngine install. - - -def fix_sys_path(): - import sys - import os - - # AppEngine imports a bunch of google-specific modules. Thankfully the dev_appserver - # knows how to do the same. Re-use the dev_appserver fix_sys_path logic to import - # all the google.appengine.* stuff so we can run under test-webkitpy - sys.path.append("/usr/local/google_appengine") - import dev_appserver - dev_appserver.fix_sys_path() - - # test-webkitpy adds $WEBKIT/WebKitTools to the sys.path and imports - # QueueStatusServer to run all the tests. However, when AppEngine runs - # our code QueueStatusServer is the root (and thus in the path). - # Emulate that here for test-webkitpy so that we can import "model." - # not "QueueStatusServer.model.", etc. - sys.path.append(os.path.dirname(__file__)) - - -fix_sys_path() |