appengine_main.py revision f2477e01787aa58f445919b809d89e252beef54f
1#!/usr/bin/env python
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
4# found in the LICENSE file.
5
6import os
7import sys
8
9# Add the original server location to sys.path so we are able to import
10# modules from there.
11SERVER_PATH = 'chrome/common/extensions/docs/server2'
12if os.path.abspath(SERVER_PATH) not in sys.path:
13  sys.path.append(os.path.abspath(SERVER_PATH))
14
15import webapp2
16
17from app_engine_handler import AppEngineHandler
18
19def main():
20  webapp2.WSGIApplication([('/.*', AppEngineHandler)], debug=False).run()
21
22if __name__ == '__main__':
23  main()
24