My favorites | Sign in
Project Logo
                
Changes to /trunk/test/__init__.py
r0 vs. r2   Edit
  Compare: vs.   Format:
Revision r2
Go to: 
Project members, sign in to write a code review
/trunk/test/__init__.py   r0 /trunk/test/__init__.py   r2
  1
  2 import os
  3 import sys
  4 # fix this...
  5 sys.path.append('/usr/local/google_appengine')
  6 sys.path.append('/usr/local/google_appengine/lib/django')
  7 sys.path.append('/usr/local/google_appengine/lib/webob')
  8 sys.path.append('/usr/local/google_appengine/lib/yaml/lib')
  9
  10 from google.appengine.tools import dev_appserver
  11 from google.appengine.tools.dev_appserver_main import *
  12 option_dict = DEFAULT_ARGS.copy()
  13 option_dict[ARG_CLEAR_DATASTORE] = True
  14
  15 def setup():
  16 ## path to app:
  17 root_path = os.path.join(os.path.dirname(__file__), '..')
  18 logging.basicConfig(
  19 level=option_dict[ARG_LOG_LEVEL],
  20 format='%(levelname)-8s %(asctime)s %(filename)s] %(message)s')
  21 config, matcher = dev_appserver.LoadAppConfig(root_path, {})
  22 ## commented out stuff that checked for SDK updates
  23 dev_appserver.SetupStubs(config.application, **option_dict)
  24
Hosted by Google Code