Index: chrome/common/extensions/docs/server2/appengine_main.py |
diff --git a/chrome/common/extensions/docs/server2/appengine_main.py b/chrome/common/extensions/docs/server2/appengine_main.py |
new file mode 100755 |
index 0000000000000000000000000000000000000000..5381017867bf84114758e4616a312a2deec35c9b |
--- /dev/null |
+++ b/chrome/common/extensions/docs/server2/appengine_main.py |
@@ -0,0 +1,24 @@ |
+#!/usr/bin/env python |
+# Copyright (c) 2012 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. |
+ |
+import os |
+import sys |
+ |
+# Add the original server location to sys.path so we are able to import |
+# modules from there. |
+SERVER_PATH = 'chrome/common/extensions/docs/server2' |
+if os.path.abspath(SERVER_PATH) not in sys.path: |
+ sys.path.append(os.path.abspath(SERVER_PATH)) |
+ |
+from google.appengine.ext import webapp |
+from google.appengine.ext.webapp.util import run_wsgi_app |
+ |
+from handler import Handler |
+ |
+def main(): |
+ run_wsgi_app(webapp.WSGIApplication([('/.*', Handler)], debug=False)) |
+ |
+if __name__ == '__main__': |
+ main() |