Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: chrome/common/extensions/docs/server2/appengine_main.py

Issue 15009006: Docserver: refactor Servlet, ObjectStore, and ServerInstance architecture to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cduvall, redirect fix Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import sys 7 import sys
8 8
9 # Add the original server location to sys.path so we are able to import 9 # Add the original server location to sys.path so we are able to import
10 # modules from there. 10 # modules from there.
11 SERVER_PATH = 'chrome/common/extensions/docs/server2' 11 SERVER_PATH = 'chrome/common/extensions/docs/server2'
12 if os.path.abspath(SERVER_PATH) not in sys.path: 12 if os.path.abspath(SERVER_PATH) not in sys.path:
13 sys.path.append(os.path.abspath(SERVER_PATH)) 13 sys.path.append(os.path.abspath(SERVER_PATH))
14 14
15 from google.appengine.ext import webapp 15 from google.appengine.ext import webapp
16 from google.appengine.ext.webapp.util import run_wsgi_app 16 from google.appengine.ext.webapp.util import run_wsgi_app
17 17
18 from handler import Handler 18 from app_engine_handler import AppEngineHandler
19 19
20 def main(): 20 def main():
21 run_wsgi_app(webapp.WSGIApplication([('/.*', Handler)], debug=False)) 21 run_wsgi_app(webapp.WSGIApplication([('/.*', AppEngineHandler)], debug=False))
22 22
23 if __name__ == '__main__': 23 if __name__ == '__main__':
24 main() 24 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698